Get organization id in a flow

Hello,

I want to ask if there is a way to get the organization id of the conversation agent (something like Call.OrganizationID).
From this guide I have not found something useful to this case.

Thank you!

Hello again,

Is there any update about the above?

Thank you!

As far as I know a flow is always tied to an organization, so all agents in the flow would have the same organization. You could go to resources -> data and create a variable with the organization Id configured.

Is the issue that you are importing and exporting the same flow to multiple organizations?

--Jason

Hello Jason,

What you are describing is not exactly what I want.

Imagine we have a flow and inside the flow, during the execution of the flow, we want to get some variables, such as the conversationId. There is a built-in variable for the conversationId and it is the Call.ConversationId.

So my question is: Is there any corresponding variable to the organization id? If not, is there another way to get the orgId in a flow?

Note: The flow will be used by many organisations so it is important to be dynamic.

How are you getting the same flow into multiple organizations?

Let's say we send the flow to clients to import it into their environment and add it to their flows.

Please create an idea for this at https://purecloud.ideas.aha.io/ideas/ so that your use case shows up for product managers.

Short term solutions:
You could modify the export so that it has the correct org ID for the customer set in a variable.
Create a Genesys Cloud data action to hit the GET /api/v2/organizations/me route to get the orgId.

--Jason

Thank you Jason for your answer.

We have tried to create a data action to hit the GET /api/v2/organizations/me but we are facing issues about authentication. The action needs the bearer token and based on this guide we need to set up every time the clientId and clientSecret of the agent dynamically.
As we know so far, we can not populate dynamically these fields in an action for every agent.

Do you have any tip for this issue? :slight_smile:

You would want to make a "Genesys Cloud data action" integration, not a webservices one.

You are right Jason! With Genesys Cloud data action it worked!
I will create an idea also, because this solution is a bit tricky.

Thanks Jason!

Best regards

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.