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

4 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

    • 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