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 / Delay completion of dy...
Power Automate
Unanswered

Delay completion of dynamic varibles and fuctions to pass to a child flow

(0) ShareShare
ReportReport
Posted on by 87

I am trying to build a child flow to update SharePoint lists using HTTP.  To do so I need to pass a JSON like the following to the child flow.  :

 

{
 "__metadata": @{json(concat('{"type":"SP.Data.', replace(replace(outputs('SettingsCDRAccounts')['listName'], ' ', '_x0020_'),'-',''), 'ListItem"}'))},
 "ID": @{xpath(xml(outputs('XMLSPArray-CDR-Accounts')),concat('string(//Array[Title/text()="', item()['Id'],'"]/ID/text())'))},
 "Title": @{item()?['Id']},
 "LastModifiedDate": @{item()?['LastModifiedDate']},
 "AccountName": @{item()?['Name']},
 "AccountTheater": @{item()?['Theater__c']},
 "AccountRegion": @{item()?['Operation_Region__c']},
 "AccountArea": @{item()?['Area__c']},
 "AccountNumber": @{item()?['Account_Number__c']},
 "": ""
}

 

The issue is that you can't build a JSON like this in the parent because Power Automate tries to complete the "@{item()?['...']}" functions when created and the data for item to evaluate is in the child flow.  I need to delay the dynamic completion to the correct spot in the child flow.

 

Thank you for your help.

Categories:
I have the same question (0)
  • Pablo Roldan Profile Picture
    316 on at

    Hi, you might need to review your logic not sure how you can "resolve it / eval" functions in runtime in PAF, if you copy and paste that code to a compose actions indeed it will try to refer them as expressions, so you will need to pass them as strings. 

     

    {
     "__metadata": "@@{json(concat('{\"type\":\"SP.Data.', replace(replace(outputs('SettingsCDRAccounts')['listName'], ' ', '_x0020_'),'-',''), 'ListItem\"}'))}",
     "ID": "@@{xpath(xml(outputs('XMLSPArray-CDR-Accounts')),concat('string(//Array[Title/text()=\"', item()['Id'],'\"]/ID/text())'))}",
     "Title": "@@{item()?['Id']}",
     "LastModifiedDate": "@@{item()?['LastModifiedDate']}",
     "AccountName": "@@{item()?['Name']}",
     "AccountTheater": "@@{item()?['Theater__c']}",
     "AccountRegion": "@@{item()?['Operation_Region__c']}",
     "AccountArea": "@@{item()?['Area__c']}",
     "AccountNumber": "@@{item()?['Account_Number__c']}"
    }

    and scape the fx expression with @@

     

     

    regards

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 315 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 273 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 117 Super User 2026 Season 1

Last 30 days Overall leaderboard