web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

AngularJS webapi update

(0) ShareShare
ReportReport
Posted on by 2

I'm trying to update a record field from within an AngularJS which is hosted in an Iframe of a CRM2016.

I need to update a field on the connection entity. However I don't succeed.

I have no error but update is not done.

Unfortunately I'm not allowed to install new software, so I don't have fiddler or other to trace the traffic.

Below the code I use. My guess is I have a wrong parameter.

If someone can point me in the right direction, I'll be grateful.

        var attr = JSON.stringify("{'fua_visibility' :  'true'}");
        $http.patch(API_ROOT + + "connections(" + node.guidpk + ")", attr).then((answer) => {
            alert('response');
        });

*This post is locked for comments

I have the same question (0)
  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Use your browser for this purpose instead of Fiddler. Hit F12 on your keyboard and see what happens.

    Good luck.

  • Verified answer
    Flydancer Profile Picture
    1,332 on at

    - Do you use the correct API URL?

    - You have an unnecessary "+" after your API_ROOT

    - Set the Value of fua_visibility to true, you're trying to set a string.

    - use .catch() on your promise to see returning errors

  • Birgit RD Profile Picture
    2 on at

    @Flydancer : thanks for your reply.

    It was exactly what was wrong: once both changes applied, it worked fine.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans