Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
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

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans