cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
xsomej
Helper I
Helper I

SharePoint list - Flow button trigger - non default environment

Hi all,

 

I'm using following JSON to format a column in SharePoint list and a create a button from in to trigger a Flow for the selected item:

{
"$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
"elmType": "button",
"customRowAction": {
"action": "executeFlow",
"actionParams": "{\"id\": \"5849426e-1596-4b40-8f4f-533cc440f7fd\"}"
},
"attributes": {
"class": "ms-fontColor-themePrimary ms-fontColor-themeDarker--hover"
},
"style": {
"border": "none",
"background-color": "white",
"color": "blue",
"cursor": "pointer"
},
"children": [
{
"elmType": "span",
"attributes": {
"iconName": "WordLogo"
},
"style": {
"padding-right": "6px"
}
},
{
"elmType": "span",
"txtContent": "Fill Word"
}
]
}

 

I wonder if there is a way, using the code above, to run a Flow which is in non default environment?

Probably by using another parameter after "actionParams"?

 

 

Thanks,

Jan

1 ACCEPTED SOLUTION

Accepted Solutions
DirkP
New Member

Hi Jan,

 

not sure if this topic is still of interests for you. I had the same challange. I found a solution for that. To get the valid Worklflow ID for a flow sitting in a different environment, just click on export function within flow details (Export -> Get Flow Identifier). Here you can receive the flowidentifier including the environment-id. For my case "v1/ENVIRONMET-ID/FLOW-ID".

 

Hope it helps,

Regards,

Dirk

View solution in original post

7 REPLIES 7
v-bacao-msft
Community Support
Community Support

Hi @xsomej ,

 

Thank you for your sharing.

But it seems that adding attributes is not working.

The basis for this Flow build is For a selected item, which is only available in Flow option of SharePoint list when it is created in default environment.

So I am afraid there is no suitable way to achieve the requirements.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
DirkP
New Member

Hi Jan,

 

not sure if this topic is still of interests for you. I had the same challange. I found a solution for that. To get the valid Worklflow ID for a flow sitting in a different environment, just click on export function within flow details (Export -> Get Flow Identifier). Here you can receive the flowidentifier including the environment-id. For my case "v1/ENVIRONMET-ID/FLOW-ID".

 

Hope it helps,

Regards,

Dirk

This worked for me, thanks for sharing @DirkP !!

sandrox2
Regular Visitor

@DirkP  Man, just saved one life! Awesome!

MRauscher
Advocate II
Advocate II

@DirkP thx, for this great tip! 😎

That works wonderfully, thanks for sharing @DirkP !

Legend !!! works a treat 🙂

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,621)