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

How can I split in two a Powerapps trigger value?

Hello,

 

I want to split in two, based on a "," my string which arrives from the powerapps button trigger.

 

My value in flow is "Createitem_TestString" which is connected with powerapps, and I want to initalize a variable like 

first(split(triggerBody()?['Createitem_TestString'],',')) but it's not valid.
 
Can you help me what would be the valid expression?
1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

It looks like for the triggerBody you don't include the '?' like you do in other variable notation.  This worked for me.

First(split(triggerBody()['Initializevariable_Value'],','))


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Pstork1
Dual Super User III
Dual Super User III

It looks like for the triggerBody you don't include the '?' like you do in other variable notation.  This worked for me.

First(split(triggerBody()['Initializevariable_Value'],','))


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Thank you, it's working!

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (75,015)