cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KKP
Level: Power Up

Flow - JSON code issue

All, We have wrote below code in the logic app (flow) and getting syntax error, not sure what I have missed on code. apricated your help. Thansk !

issue may have on highlighted code.   

 

  "variables": {
        "spo": {
            "siteName": "[concat('/datasets/@{encodeURIComponent(encodeURIComponent(''', parameters('SharePointSite'), '''))}', '/triggers/onupdatedfile')]",
            "siteLibrary": "[concat('/datasets/@{encodeURIComponent(encodeURIComponent(''', parameters('SharePointSite'), '''))}', '/tables/@{encodeURIComponent(encodeURIComponent(''', parameters('Library'), '''))}', '/onupdatedfileitems')]",
            "siteGetFileContent": "[concat('/datasets/@{encodeURIComponent(encodeURIComponent(''', parameters('SharePointSite'), '''))}','/files/@{encodeURIComponent(triggerBody().Identifier)}/content')]",
            "siteGetFileMeta": "[concat('/datasets/@{encodeURIComponent(encodeURIComponent(''', parameters('SharePointSite'), ''')'))}', '/files/@{encodeURIComponent(triggerBody()?['{Identifier}'])}')]",
            "siteGetItemMeta": "[concat('/datasets/@{encodeURIComponent(encodeURIComponent(''', parameters('SharePointSite'), '''))}', '/tables/@{encodeURIComponent(encodeURIComponent(''', parameters('Library'), '''))}', '/items/@{encodeURIComponent(body('Get_file_metadata')?['ItemId'])}/getfileitem')]",
            "siteGetItems": "[concat('/datasets/@{encodeURIComponent(encodeURIComponent(''', parameters('SharePointSite'), '''))}', '/tables/@{encodeURIComponent(encodeURIComponent(''', parameters('List'), '''))}', '/items')]",
            "siteCreateItem": "[concat('/datasets/@{encodeURIComponent(encodeURIComponent(''', parameters('SharePointSite'), '''))}', '/tables/@{encodeURIComponent(encodeURIComponent(''', parameters('List'), '''))}','/items/@{encodeURIComponent(body('Create_Item_for_Approval_Correction')?['ID'])}')]",
            "siteCreateItem2": "[concat('/datasets/@{encodeURIComponent(encodeURIComponent(''', parameters('SharePointSite'), '''))}', '/tables/@{encodeURIComponent(encodeURIComponent(''', parameters('List'), '''))}', '/items/@{encodeURIComponent(body('Create_Item_for_Approval_Correction_2')?['ID'])}')]",
            "siteCreateItem3": "[concat('/datasets/@{encodeURIComponent(encodeURIComponent(''', parameters('SharePointSite'), '''))}', '/tables/@{encodeURIComponent(encodeURIComponent(''', parameters('List'), '''))}', '/items/@{encodeURIComponent(body('Create_Control_Record_for_Approval_Tracking_3')?['ID'])}')]",
            "siteUpdateItem": "[concat('/datasets/@{encodeURIComponent(encodeURIComponent(''', parameters('SharePointSite'), '''))}', '/tables/@{encodeURIComponent(encodeURIComponent(''', parameters('Library'), '''))}', '/items/@{encodeURIComponent(triggerBody()?['ID'])}/patchfileitem')]",
            "siteGetFileProp": "[concat('/datasets/@{encodeURIComponent(encodeURIComponent(''', parameters('SharePointSite'), '''))}', '/tables/@{encodeURIComponent(encodeURIComponent(''', parameters('Library'), '''))}', '/items/@{encodeURIComponent(body('Get_file_properties')?['ID'])}/patchfileitem')]"
        }
    },

 

1 REPLY 1
Community Support Team
Community Support Team

Re: Flow - JSON code issue

 

Hi @KKP ,

 

Could you please provide more details about Flow configuration?

Please provide more details of syntax error so that we could analyze this problem.

 

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.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 467 members 6,071 guests
Please welcome our newest community members: