web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / SharePoint list - Flow...
Power Automate
Answered

SharePoint list - Flow button trigger - non default environment

(1) ShareShare
ReportReport
Posted on by 70

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

Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    on at

    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,

  • Verified answer
    DirkP Profile Picture
    39 on at

    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

  • Aaron3Sixty5 Profile Picture
    47 on at

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

  • sandrox2 Profile Picture
    6 on at

    @DirkP  Man, just saved one life! Awesome!

  • MRauscher Profile Picture
    80 on at

    @DirkP thx, for this great tip! 😎

  • OliverR-82 Profile Picture
    619 on at

    That works wonderfully, thanks for sharing @DirkP !

  • solidsurfer Profile Picture
    2 on at

    Legend !!! works a treat 🙂

  • Ghost55811 Profile Picture
    20 on at

    @DirkP Thanks for sharing.

  • Franck_Garcia Profile Picture
    29 on at

    I confirm it works for me too. Many thanks for this tip!

  • neelp9871 Profile Picture
    2 on at

    Many thanks for this tip!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard