Skip to main content

Notifications

Announcements

No record found.

Customer Service forum
Answered

getting field value from dynamic CRM 365 to portal web from

Posted on by 30

Hi guys, 

I am sort of confused. I need information from a field that is in CRM. The field has a url. It gets populated when a workflow runs in CRM and is unique to each record.. I have so far used the following in web form:

 var location = ("#fieldname").val();

$("#downloadbutton").click(function(){
location.href = location;
});

but it comes back with page not found. 

I am not sure what is going on or where I am going wrong.

  • HelloClay Profile Picture
    HelloClay 30 on at
    RE: getting field value from dynamic CRM 365 to portal web from

    Hi Leo,

    Thank you so much for taking the time to answer my questions. It was a massive help. You are the best :)

  • Verified answer
    LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: getting field value from dynamic CRM 365 to portal web from

    Hi partner,

    Please make sure that you have logined you M365 in your browser, otherwise you will get the not found page cause you don't have the authentication to sharepoint.

    And the link provided by sharepoint only allows us to direct to the page, not download the file directly.

    For example, I have logined my M365 in browser first. And I copy the Alert.png link.

    pastedimage1595384573339v1.png

    And then in my portal form, I created a new custom button with your function "location.href =URL".

    pastedimage1595384657756v2.png

    When I click on  the custom button, the page will direct to the file page successfully.

    pastedimage1595384714576v3.png

    pastedimage1595384813190v1.png

    You could check with my steps, and if there is any doubt, please kindly let us konw.

    Best Regards,

    Leo

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans