Skip to Content

Custom recipient determination workflow rule

Dear experts,

On the workflow configuration, for email notification on Recipient, I see that there is an option saying "Recipients determined with custom logic"

However, I am unable to find where to write the custom logic or rule in case if I want to use the above option.

Can anyone please advise ?

Thanks & Regards

Suchita

-------------------------------------------------------------------------

This question is already answered and the best answer has been chosen.

Here is the Link for the document that was provided by best answer provider.

Add comment
10|10000 characters needed characters exceeded

  • Hi Suchita,

    I submitted this yesterday but not sure how this got missed.I can share you the PDF if you cam provide me the ID.

    Create Custom determination for Workflow

    This page describes about how to implement a custom logic for determining receipients in Workflow for Service Request

    This requires basic knowledge on Cloud for customer SDK .

    Step-by-step guide:-

    1. Create a Solution

    2. Add a new Item

    3. Choose the Enhancement Implementation

    4. Choose the Enhancement

    5. Implement the Enhancement Implementation

    6. Code Example:-.

    import AP.CRM.Global;

    var result : ServiceRequestWorkflowResponsibilityResultList;

    var resultParty : ServiceRequestWorkFlowRespResult ;

    var ticketData = ServiceRequest.Retrieve(InputData);

    resultParty.PartyUUID.content = ""; //<Determine Party UUID >;

    resultParty.PartyTypeName = "EMPLOYEE"; // Supported EMPLOYEE, CUSTOMER,

    BUSINESS_PARTNER

    result.Parties.Add( resultParty );

    return result;

    A.Input Parameters:--

    1. Service Request UUID - This is provided to read the current values of Service Request to determine the returning

    recipients

    B. Result Parameters is a list of Parties and their types

    1. PartyUUID - Party UUID

    2. PartyType

    EMPLOYEE

    CUSTOMER

    BUSINESS_PARTNER

    7.Creating Workflow : See article on scn

    Go to Administration --> Workflow Rules

    Create a New Workflow on Service Request

    Define your conditions

    Choose Recipient determination

    For more information about Cloud for Customer SDK http://help.sap.com/studio_cloud

  • Former Member

    Hi Suresh,

    Would you be so kind to share the PDF with me on: jeroen.zijlmans@ciber.nl

    Thank you in advance

    Kind regards,

    Jeroen Zijlmans

  • Get RSS Feed

5 Answers

  • Best Answer
    Oct 13, 2016 at 08:35 PM

    Hi Suchita,

    Create Custom determination for Workflow

    This page describes about how to implement a custom logic for determining receipients in Workflow for Service Request

    This requires basic knowledge on Cloud for customer SDK .

    Step-by-step guide

    Create a Solution

    Add a new Item

    Choose the Enhancement Implementation

    Choose the Enhancement

    Implement the Enhancement Implementation

    Code Example

    import AP.CRM.Global;

    var result : ServiceRequestWorkflowResponsibilityResultList;

    var resultParty : ServiceRequestWorkFlowRespResult ;

    var ticketData = ServiceRequest.Retrieve(InputData);

    resultParty.PartyUUID.content = ""; //<Determine Party UUID >;

    resultParty.PartyTypeName = "EMPLOYEE"; // Supported EMPLOYEE, CUSTOMER,

    BUSINESS_PARTNER

    result.Parties.Add( resultParty );

    return result;

    a.Input Parameters

    1. Service Request UUID - This is provided to read the current values of Service Request to determine the returning

    recipients

    b.Result Parameters is a list of Parties and their types

    1.PartyUUID - Party UUID

    2.PartyType

    a. EMPLOYEE

    b. CUSTOMER

    c. BUSINESS_PARTNER

    Creating Workflow : See article on scn

    Go to Administration --> Workflow Rules

    Create a New Workflow on Service Request

    Define your conditions

    Choose Recipient determination

    Related articles

    Creating workflow rules for sending email or Notifications in Cloud for Customer

    For more information about Cloud for Customer SDK http://help.sap.com/studio_cloud

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 13, 2016 at 08:43 PM

    Dear Suchita,

    Please Provide your Mail Id i can share you document on how to implement the custom workflow recipient determination.

    Regards,

    Suresh.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 12, 2016 at 09:26 PM

    Come on Folks !! No answer yet , help me out pls :-)

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 16, 2017 at 04:41 AM

    Hi,

    Please find use the this link to download the document.

    Thanks & regards

    Suchita

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Suchita,

      Is it possible to create custom WF recipient for customers ? I need to send email for account's created by user based on some conditions using WF. Unfortunately, Only Account owner / Team member details are available to select as recipient. When I try to create enhancement through SDK as suggested in this post, I am not able to see the specified enhancement for Customer Object. Can you please share your suggestions here ?

      Thanks.

      Regards,

      Swathi

  • Jan 18 at 09:20 PM

    Am I reading this correctly @suchita.phulkaro2 that you "chased" it (I use the term loosely, this is a community forum so you are getting free assistance) after it was up for just 17 hours? I also didn't see a thank you message to the person who gave you the answer. :-/

    Add comment
    10|10000 characters needed characters exceeded

    • @andrewgriffin , I think Either you are new to community or do not know how to use it because otherwise you could have seen that not only I thank the person each time he replied to my question but I also chose his answer as Best answer on the same day when he provided it to me !!

      & For your kind information, the community is for free assistance !!! - I have not only asked questions here but have also answered several.

      I am part of SAP communities for more than 12 years when it was time of SDN then SCN..so I don't need your advice here on how should I follow up on my question or how to thank people here ( which i am always thankful to) .

      1 free advice to you - Please go through all the comments and answers on any questions before you put such foolish comments only to show your ignorance by giving answer on an already answered question & that too after 2 years... LOL !!!