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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

getting field value from dynamic CRM 365 to portal web from

(0) ShareShare
ReportReport
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.

  • Verified answer
    LeoAlt Profile Picture
    16,341 Moderator on at

    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

  • HelloClay Profile Picture
    30 on at

    Hi Leo,

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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Daniyal Khaleel Profile Picture

Daniyal Khaleel 60 Most Valuable Professional

#2
11manish Profile Picture

11manish 14 Super User 2026 Season 2

#3
Hamza H Profile Picture

Hamza H 8 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans