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)

Using windows clipboard to assist with query string parameter passing large text block

(0) ShareShare
ReportReport
Posted on by 422

Hi,

This is CRM 2011 On-premise, using IE11 on Windows 8.1 .

I am using query string parameters with a custom ribbon button to launch a new custom entity form, passing  parameters and setting values on the new form.   Works nicely and is preferable to using a dialog as is quick and instantly shows the record ready to check and then save to create.

One of the fields I need to pass across however is a multiline text box which could be up to 5000 characters.  I'm running into what I think is the limit for a URL length in these scenarios when I get to around 2000 characters and hence am having to check the length of the text string in the javascript and truncate it if it results in the overall URL length being too long. 

I've learned of a possibility of using javascript to copy a CRM field(s) to the clipboard to then be able to paste from there - window.clipboardData.setData("",);
I'm now wondering if I can use this to get and set this often large text string using the clipboard rather than trying to pass through the URL?

Or is that madness and I should forget it and succumb to using a plug-in or dialog?

Thanks in advance.

Alex  

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Royal King Profile Picture
    27,686 on at

    You could use just window.parent in the new window to access the data from the opened window. This way you dont have to worry about query string limit.

    window.parent.opener.Xrm.Page.data.entity.attributes.get("Attribute_Name");  

  • Suggested answer
    AlexJay Profile Picture
    422 on at

    Hi Chitra,

    Thanks so much. Utilising window.parent as you suggest has worked wonderfully.

    I was not expecting there to be such a simple solution.

    Very much appreciated.

    Best wishes

    Alex

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