Skip to Content

how to send url in mail through action script code in sap C4C

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 = ""; 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

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,


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on 4 days ago

    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" target="_blank">">>

    In xml


    <link><![CDATA[ ]]></link>




    Add a comment
    10|10000 characters needed characters exceeded

    • Hello Marie,

      No, It's now the part of any service . it's just the past of SDk coding. from SDK coding i am sending the email there i am preparing the mail body so there i am unable to use pass url in mail for body.

      Thanks and Regards,

      Madhuri Dubey.

  • Posted on 4 days ago


    In order to copy url value to "hyperlink" pls use hyperlink.content as shown:

    hyperlink.content = "";

    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



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.