This is a public Forum  publicRSS

Topic

    Niven
    Send Survey through Connect PHPAnswered
    Topic posted January 16, 2018 by NivenWhiz 
    125 Views, 1 Comment
    Title:
    Send Survey through Connect PHP
    Content:

    Greetings

    The business requirement is to have a Survey emailed when the incident is marked Closed. Although the customized button from the Customer Portal page does change the status field in the Incident record, it does not trigger the existing business rule. The business rule will work if the status is changed from the Agent Desktop (which is expected). The Connect PHP is used for Mailings when the statuses are in other values. Can Connect PHP be used to send Surveys?

    Thank you

    Niven Surenthiran 

    Version:
    Service Cloud

    Best Answer

    Suresh Thirukoti

    Niven - You can use Connect PHP to invoke Campaigns like below. You can create campaign like {Entry Point} ---> {Transactional Survey}

    // fetching contact object with ID of 1
    $contact = RNCPHP\Contact::fetch(1);
                            
    // will execute flow id 6 for the campaign
    $flow_id = 6;
    RNCPHP\Marketing::ExecuteMarketingFlow($contact, $flow_id, "start_here");
    

    http://documentation.custhelp.com/euf/assets/devdocs/cloud17d/Connect_PHP/Content/Connect%20for%20PHP%20API/Connect%20PHP%20API/Operational%20Behavior/Methods/Marketing%20Methods.htm

    ~Suresh

    Answer