Legacy Dev Forum Posts

 View Only

Sign Up

API to update wrapup code from Salesforce SDFC Plugin (Get Bearer Token)

  • 1.  API to update wrapup code from Salesforce SDFC Plugin (Get Bearer Token)

    Posted 06-05-2025 18:25

    fransiska.hendra | 2023-03-23 00:08:16 UTC | #1

    Hi Everyone,

    Just wondering if anyone could help advise, so we are using Salesforce Plugin SDFC Genesys Cloud. And we want to do wrapup from Salesforce instead from Softphone. So we need to call Genesys Cloud API

    Currently, we are using https://developer.genesys.cloud/routing/conversations/conversations-apis#patch-api-v2-conversations--conversationId--participants--participantId PATCH /api/v2/conversations/{conversationId}/participants/{participantId}

    But issue appear is this API need a user based OAuth flow Bearer Token, we can not use client credentials.

    If anyone can advise how can we get Bearer Token Salesforce Plugin ? We are trying to avoid to get bearerToken from the user login example below we trying to avoid: //Redirect the browser to the login window. webBrowser1.Url = new Uri( $"https://login.{environment}/oauth/authorize?" + "responsetype=token" + $"&clientid={clientId}" + "&redirect_uri=http://localhost:8085/oauth2/callback");

    If Embed Framework, we can get bearer Token from User.getAuthToken

    Appreciate for any advise.

    Thank you Fransiska https://developer.genesys.cloud/platform/embeddable-framework/actions/User/User.getAuthToken


    tim.smith | 2023-03-23 16:10:44 UTC | #2

    Client-side web apps must use the implicit grant for the user to authorize the application. This doesn't change if you're using the API directly or any framework/plugin. https://developer.genesys.cloud/authorization/platform-auth/use-implicit-grant


    fransiska.hendra | 2023-03-24 04:32:46 UTC | #3

    hi @tim.smith

    Thank you for explaination, its clear for me now.

    Fransiska


    John_Carnell | 2023-03-27 17:07:17 UTC | #4


    This post was migrated from the old Developer Forum.

    ref: 19058