Dear Team,
I have written below code to content URL in email body in action script code. but it's not working. Could you please correct me here in 2 queries. in code..
1) var hyperlink:GDT:URI;
hyperlink = "https://facebook.com.XYZ"; this line is also not working....
And then I want to use this variable in XML body like Line4 = hyperlink;
This piece of code i am writing in script file of service.bo.
2) var assignto = this.ProcessorParty.Party.Name; this is also on service bo script file..
not able to user assignto variable as string in email body. how to convert it into string.
Thanks and Regards,
MD.
Hi Maduri,
Can you share some information on the process and scenario you want to use this e-mail body in?
You mention XML - will the code be part of a web service?
If you want to include an url in a e-mail template (in html code) in SAP C4C (Sales or Service) the code in html looks as follow
www.sap.com.nlwww.sap.com.nl" target="_blank">http://www.sap.com/">www.sap.com.nl>
In xml
<xml>
<link><![CDATA[ https://facebook.com.XYZ ]]></link>
</xml>
Kr.
MJ
Hello,
In order to copy url value to "hyperlink" pls use hyperlink.content as shown:
hyperlink.content = "https://facebook.com.XYZ";
Similarly, when you want to read from collection then you need to specify the index to be read or simply pass GetFirst() when you want to read the first record in the collection as shown:
var assignto = this.ProcessorParty.Party.Name.GetFirst().PartyFormattedName.content;
OR alternatively you can also use the following:
var assignto = this.ProcessorParty.Party.Customer.CurrentCommon.BusinessPartnerFormattedName
BR
Saurabh
Add a comment