locked
get case link on workflow crm 4 RRS feed

  • Question

  • hi

    i have search how to get case link in crm 4 but i couldnt find any article about it

    i have a workflow on case entity and i want to get the case link on workflow

    is it possible?


    Software Specialist Crm

    Tuesday, March 27, 2012 11:49 AM

Answers

All replies

  • Hello,

    You should donwnload accelerator - http://crmaccelerators.codeplex.com/releases/view/26691. It contains generator of urls.


    Microsoft CRM Freelancer

    My blog (english)
    Мой блог (русскоязычный)
    Follow Andriy on Twitter

    Tuesday, March 27, 2012 11:56 AM
    Moderator
  • can i get the url by using js?


    Software Specialist Crm

    Tuesday, March 27, 2012 12:05 PM


  • var query = window.location;
    crmForm.all.new_test.DataValue=query;

    i can get the link but i cant save it to attribute any idea?

    Software Specialist Crm

    Tuesday, March 27, 2012 12:53 PM
  • Try to use

    var query = window.location.href;


    Microsoft CRM Freelancer

    My blog (english)
    Мой блог (русскоязычный)
    Follow Andriy on Twitter

    Tuesday, March 27, 2012 12:57 PM
    Moderator
  • Hi,

    ***Actually in MS CRM 4.0 the 'Case' will be called as by the entity name 'Incident'.

    1. In your case to get the URL In the Workflow you must register the accelerator as a Plug-In using plug-in Registration tool:as Andrill suggested follow the given link:

    http://crmaccelerators.codeplex.com/releases/view/26691.

    2. But your asking how to get the case url by using JavaScript - this is just an example: build your own code

    <? xml version='1.0' encoding='utf-8' ?>

    <soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>

    <soap:Body>

    <query xmlns:q1='http://schemas.microsoft.com/crm/2006/Query' xsi:type='q1:QueryByAttribute' xmlns='http://schemas.microsoft.com/crm/2006/WebServices'>

    <q1:EntityName>incident</q1:EntityName>

    <q1:ColumnSet xsi:type="q1:ColumnSet">

    <q1:Attributes>

    <q1:Attribute>ATTRIBUTE1</q1:Attribute>

    <q1:Attribute>ATTRIBUTE2</q1:Attribute>

    </q1:Attributes>

    </q1:ColumnSet>

    <q1:Attributes>

    <q1:Attribute>CRITERIA_ATTRIBUTE</q1:Attribute>

    </q1:Attributes>

    <q1:Values>

    <q1:Value xsi:type="xsd:string">CRITERIA_VALUE</q1:Value>

    </q1:Values>

    </query>

    </soap:Body>

    </soap:Envelope>

    var xmlResponse = xmlhttp.responseXML;

    xmlhttp.send(xmlPost);

    // PARSE NODES

    var caseID = xmlResponse.selectNodes("//BusinessEntity/incidentid"); //incidentid = ATTRIBUTE1

    var caseslistnames = xmlResponse.selectNodes("//BusinessEntity/fullname"); //fullname = ATTRIBUTE2

    For the entity form...

    ...of CRM entities

     - http://crmserver/org/sfa/accts/edit.aspx (Account)
     - http://crmserver/org/sfa/conts/edit.aspx (Contact) like wise for Case URL will be given below

    var caseURL = "http://crmserver/org/sfa/incident/edit.aspx" (Case) pass like statically(not recommended)

    recommending the above JavaScript code


    Thanks, - Israel Pradeep, - Software Engineer & PMP & B.I - Entrepreneur. - - If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful". For More Information, please feel free to visit our website- http://xrmxtensibles.wordpress.com/


    Tuesday, March 27, 2012 1:14 PM