Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Unanswered

Get field value from Json in Powerapps

Posted on by 25

Hi,

I have a CustomPage on Lead entity with a Edit form to allow the user updating the data back to the record. I want to pass a field from a Json to this custom page. The Json file looks like this:

const data = {
recordId: Test.Xrm.getXrmPage().data.entity.getId().toLowerCase().replace("}", "").replace("{", ""),
Test_showdeactivationemail: showMail
};

"recordId": JSON.stringify(data);
Now I need to get the RecordId from the above Json file in Powerapps.Do you have any idea how to solve this problem? Appreciate any suggestion!
Best Regards
  • Tavarish Profile Picture
    Tavarish 25 on at
    RE: Get field value from Json in Powerapps

    Hi Guido Preite

    Thank you for your answer!

    no actually I want to pass a field from anther table to my custom page, which is in my code "Test_showdeactivationemail". Therefore I have stored here this field in Const.

    Now I want to call not only recordid but also this field in my Cutom Page. I dont know if there is a way here.

  • Guido Preite Profile Picture
    Guido Preite 54,063 Moderator on at
    RE: Get field value from Json in Powerapps

    if you just need to get the recordId from the const "data" variable, because is json you can just use

    data.recordId

    and not JSON.stringify(data)

    but maybe I didn't understand your question, if you can write more details will be useful

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,537 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,520 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans