Announcements
No record found.
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.
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.
And then in my portal form, I created a new custom button with your function "location.href =URL".
When I click on the custom button, the page will direct to the file page successfully.
You could check with my steps, and if there is any doubt, please kindly let us konw.
Best Regards,
Leo
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Daniyal Khaleel 60 Most Valuable Professional
11manish 14 Super User 2026 Season 2
Hamza H 8 Super User 2026 Season 2