Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Unanswered

Get field value from Json in Powerapps

(0) ShareShare
ReportReport
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,087 Super User 2024 Season 1 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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans