In CRM 2011, using JavaScript, how can I get the calling entity or form type name? For example, if I open an activity, I want to see if I opened this activity from an account form or a contact form etc. I have googled this and I am not finding anything.
In CRM 2011, using javascript, how can I get the calling entity or form type name?
1.2k Views Asked by Deene Taylor Ogden At
2
There are 2 best solutions below
0
Sunil
On
Use
window.parent.opener.Xrm.Page.data.entity.getEntityName()
This will only work if you have opened up the entity from the calling entities' form.
It will not work if you open up the entity from the related activities section by on the left.
Basically the parent page should have the entity form loaded in order to use the Xrm.Page.data object.
Related Questions in DYNAMICS-CRM-2011
- Based on condition Disable Field/Remove addresscomplete pca control from dynamics crm field
- Dashboard in Dynamics 365 redirecting to PowerBI
- Replace all the values using JS in d365 crm
- SQL error in crmsvcutil after organization upgrading
- A proxy type with the name account has been defined by another assembly - CRM 365 Earyl-bound classes
- what is best way to track user's time spent in Dynamics 365?
- dynamics customer insights check table imported on dynamics crm
- Retrieve deleted records from the MS Dynamics 365 instance
- How can I integrate a logger (e.g. NLog, log4net, etc.) with the Dynamics CRM 2011 ITracingService?
- rest api to get the list of all the users and teams to which a record is shared in ms dynamics
- rest api to know if a record belonging to any entity is public or not
- Finding a Structured Way to Learn Dynamic Programming
- How do I create a plug-in to update the 'Modified By' column with the 'Owner' value in d365 entity?
- MS Dynamics - Microsoft.CIFramework.addHandler is not invoked - onpagenavigate and onclicktoact
- unable to load CRM organization
Related Questions in DYNAMICS-CRM
- Sync Plugin Timeout issue
- Dynamics CRM storage for email attachment?
- CRM Dynamics how to check if empty picklist value is present
- Ticketstatus on DynamicsCRM updates on TFS Ticketstatus change
- Azure Function OAuth works in Postman but returns "No permission" in browser
- Error : Connect with Dataverse using Client Id and Secret
- Can Azure Functions encounter timeout exceptions?
- Concat strings using fx formular
- redirect with js to another page, the same way like <a> html attribute
- Dynamics 365: Where does the "Party Number" field in the Contacts table come from?
- Regarding associating web roles to contact from Power Pages Portal
- Can you reference a class from another solution in Dynamics 365 Cloud?
- The Ribbon Workbench Enable rule is not firing only when Group By is applied on an editable grid
- Azure AD Authentication within an iFrame in Dynamics
- How to add customization in Knowledge article expiration View in Dynamics CRM
Related Questions in XRM
- Unable to cast - 'CDSRuntime.SandboxWorker.SandboxOrganizationServiceWrapper' to type ..WebProxyClient<Microsoft.Xrm.Sdk.IOrganizationService
- Xrm.Navigation.openForm set lookup field automatically from the previous form
- XrmToolBox Error while deserializing configuration file. Details: There is an error in XML document (13, 8) at ConnectionManager
- Edit Xrm.Utility.confirmDialog button text
- CRM Plugin IQueryable Early bound Entities subquery is "invoking an invalid property or method"
- Trigger CRM workflow (Microsoft Dynamics CRM 2013)
- Xrm.WebApi.updateRecord save a record fields as a different user then the user called the Api
- Queries that involve more than 250 virtual entity lookup field values fail with "An unexpected error occurred."
- How to execute Get-CrmConnection inside scheduled task
- How to use XRM in C#?
- GetEntityMetadata returns 0 attributes
- Set secured field in javascript according to general attribute
- How to properly disable form field in UCI using javascript
- Converting rdl to pdf using javascript
- XMLHTTPRequest onReadyStateChange Not Triggered
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In that particular case you should check the regarding field - CRM automatically populates this, that should contain the information you require.