Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

Set field values using parameters passed to a form

$
0
0

I have an application that sits outside of CRM. It reads the data from CRM. Requirement is the user wants to click on a URL in that app, that opens CRM phone call activity form with some prepopulated values. User wants to verify and save the form.

Here are the fields :
1) Call type - Schema name : rtt_calltype, value type : option set value
2) Campaign Search – Schema name : rtt_campaignsearchid, value type : Lookup to Campaign entity
3) Regarding – Schema name : regardingobjectid, value type : lookup to contact entity (Out of the box field)
4) Call to – Schema name : TO, value type : Party list (Out of the box field).


I generated the URL but it doesn’t seem to be working. Either it autopopulate rtt_calltype, rtt_campaignsearchid (or) regardingobjectid,TO but not all. Please share your ideas if there is also other way of achieving this like javascript etc.

https://testdev.com/TDEV/CRMReports/viewermain.aspx?etc=4210&pagetype=entityrecord&extraqs=rtt_calltype%3d961640001%26rtt_campaignsearchid%3d075DCB99-4B8E-EB11-8106-005056B968B6%26rtt_campaignsearchidname%3d2021NextGen%26%3f_CreateFromId%3d%257b37C88105-D25D-E811-80DC-005056B920D8%257d%26_CreateFromType%3d2%26contactInfo%3d%26etc%3d4210%26pId%3d%257b37C88105-D25D-E811-80DC-005056B920D8%257d%26pName%3d%26pType%3d2%26partyaddressused%3d%26partyid%3d%257b37C88105-D25D-E811-80DC-005056B920D8%257d%26partyname%3dMike Hussey%26partytype%3d2

select  substring(('https://'+'testdev.com/TDEV/CRMReports/viewer/drillopen.aspx'), 0, charindex('CRMReports',('https://'+'ctacrmdev.rjf.com/INTERMEDIARYDEV/CRMReports/viewer/drillopen.aspx')))
						+'main.aspx?etc=4210&pagetype=entityrecord&'
						+'extraqs='
						+'rtt_calltype%3d' + '961640001' 
						+'%26rtt_campaignsearchid%3d'+replace(replace(convert(varchar(40),'075DCB99-4B8E-EB11-8106-005056B968B6' /*fp.entityid*/), '{', ''), '}', '')  
						+'%26rtt_campaignsearchidname%3d'+ '2021 NextGen' 					

------- Code does not work below this point with the above. Can either run the top portion or the bottom portion.Cannot run both together, else the bottom portion overrides the top

						+'%26%3f_CreateFromId%3d%257b' + replace(replace(convert(varchar(40),'37C88105-D25D-E811-80DC-005056B920D8' /*fc.contactid*/), '{', ''), '}', '') 
						+'%257d%26_CreateFromType%3d2%26contactInfo%3d%26etc%3d4210%26pId%3d%257b' + replace(replace(convert(varchar(40), '37C88105-D25D-E811-80DC-005056B920D8' /*fc.contactid*/), '{', ''), '}', '') 
						+ '%257d%26pName%3d%26pType%3d2%26partyaddressused%3d%26partyid%3d%257b' + replace(replace(convert(varchar(40), '37C88105-D25D-E811-80DC-005056B920D8' /*fc.contactid*/), '{', ''), '}', '') 
						+ '%257d%26partyname%3d' + replace('Mike Hussey' /*fc.fullname*/, ', ', '%252c%2520') + '%26partytype%3d2'

Viewing all articles
Browse latest Browse all 55831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>