Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all 46379 articles
Browse latest View live

User does not have send-as privilege for email sending by workflow

$
0
0

I am receiving the User does not have send-as privilege for triggering a workflow that is sending an email.

The setup is that the person sending the email is the owner of the record. This is the person who will trigger the workflow and the error is still appearing.

It was working before the Dynamics 9.0 update but is now not working. This isn't a send on behalf problem as the person triggering the email workflow will be the owner of the record.

The setup is (Owner(Record)) to (Manager(Record)) where the Owner will be triggering the workflow.

Thanks


Import Unmanaged Solution as a Managed Solution

$
0
0

I've exported an unmanaged solution as a managed solution and now trying to import it back into the system. While doing so, it gives me an error 

Name: ImportMissingDependenciesError

Hex: 8004801D

 


All the dependent files which it says missing are in the system but not in the solution. I'm confused if to import an unmanaged solution as a managed solution, all the dependent files have to be a part of a solution or not?

( I did an experiment to check if I can export this solution as an unmanaged solution and import it back into the system without including all the dependent files into the solution and surprisingly it did get imported so I'm not sure why is it happening?)

Please, any suggestion.

Will deleting a managed solution remove data if the components are also in an unmanaged solution

$
0
0

Some background: I made a minimal copy of prod. into sandbox. I created a solution and added the "contact" entity into in Sandbox, made some updates, and have exported it as a managed solution. I want to import this managed solution into prod. The "contact" entity already exists in prod in an unmanaged solution (we are trying to get prod. to be only managed solutions). I am wondering, if I then delete the managed solution from prod, will all the data from "contacts" be lost?? I am assuming no - but wanting to double check. 

Also, we have been currently using only unmanaged solutions in prod (didn't know any better). We are wanting to start using managed solutions and abide by best practices in terms of development in dynamics. Does anyone have any thoughts on how we can go from having all unmanaged solutions in prod. to managed ones? Step by step would be appreciated, as this is a new process for us. 

Workflow Tools - error when deleting record

$
0
0

I'm trying to use the Delete Record function in the Workflow Tools add-on to delete a record.  I'm trying to just manually put a single record GUID in at the moment, just to make sure it's a correct GUID, but still no luck.

Properties are defined as:

Delete using Record URL: False

Entity Type Name: <the schema name of my entity, in lower case>

Entity GUID: <the GUID of the record - I've tried in upper case, lower case, and with and without brackets>

If I run the workflow with just this one step, I get the error "Unexpected exception from plug-in (Execute): msdyncrmWorkflowTools.Class.DeleteRecord: System.NullReferenceException: Object reference not set to an instance of an object." 

The record 100% exists.  Anyone know where else I could look for what's happening here?

Creating workflow based on dates.

$
0
0
Hi,
I have a custom entity named performance and have a due date colum in the performance entity.
Now I have requirement to write a workflow to create a task record when current date is 10 days before due date.
Can anyone help me how to achieve this?

How to Validate the Email Field In MS CRM Portal signIn Page

$
0
0

Hi All,

How to Validate the Email Field In MS CRM Portal signIn Page

Strange error in CRM Portals with Page having a Web form

$
0
0

Hi Everyone,

I have a web form having 3 steps, step-1, step-2, step-3 in CRM Portals (events management portal for Marketing) showing 3 different tabs of an entity (CRM form) and taking record source from the Query String Parameter "id". I am getting the below error recently:



It was working till yesterday and now all of a sudden this error started. I am not sure what went wrong with the page/web form etc. If I delete n recreate everything again it works for few times the again starts breaking. :( 

Thanks In Advance

How to move Notes tab in any from far right to the far left

$
0
0

Hi All,

How to move Notes tab in any from far right to the far left.

so something like this.

1)Notes
2)Posts
3)Assistant
4)Activities


how to consume data from external web service and scheduling

$
0
0

how to consume data from external web service to mscrm entity field ?
and i want to schedule and update those fields daily basis . suggest me the best way ..

[CRM9, Script] Cannot read property 'bookOrRescheduleWithCallback' of undefined

$
0
0

After upgrading our Sandbox environment we encored problem with saving new record of “Appointment” entity.

Problem occurs on Quick Form with is invoked by CRM from Account entity form (standard Add New functionality).

No additional JavaScript functionality is added on “Appointment” entity, in “Account” form there is simple JavaScript that makes some fields disabled.

Error that GUI shows:

 

Debugging of CRM JavaScript’s shown me following problems:

 

With shows following callstack:

"TypeError: Cannot read property 'bookOrRescheduleWithCallback' of undefined
    at Mscrm.InlineEditDataService.$1f_0 (xxx.crm4.dynamics.com/.../JsProvider.ashx;ver=1005756403:5230:54780)
    at Mscrm.InlineEditDataService.saveData (xxx.crm4.dynamics.com/.../JsProvider.ashx;ver=1005756403:5230:51642)
    at Function.Mscrm.InlineEditDataService.save (xxx.crm4.dynamics.com/.../JsProvider.ashx;ver=1005756403:5230:12486)
    at Mscrm.FormDataManager.save (xxx.crm4.dynamics.com/.../JsProvider.ashx;ver=1005756403:6:7117)
    at Mscrm.FormDataManagerWrapper.save (xxx.crm4.dynamics.com/.../JsProvider.ashx;ver=1005756403:6:44450)
    at Mscrm.GlobalQuickCreate.RefreshFormCallbacks.onRefreshFormSaveCallback (xxx.crm4.dynamics.com/.../JsProvider.ashx;ver=1005756403:1998:34051)
    at Function.Mscrm.Utilities.executeFunction (xxx.crm4.dynamics.com/.../global.ashx)
    at HTMLButtonElement.Mscrm.GlobalQuickCreate.GlobalQuickCreateBehavior.$Y (xxx.crm4.dynamics.com/.../globalquickcreatebehavior.js)
    at HTMLButtonElement.u (r1.res.office365.com/.../shellcoreming2am_20bef2ed.js:1794:22)"

After digging into following exception I found a place where this error occurs:

 

Case Report with Who Resolved The Case

$
0
0

I'm trying to create an SSRS report of cases that includes a column with who resolved the case.

This is causing an issue where the case was reopened and subsequantly resolved again because my fetchXML is giving me two rows.

Can I reconfigure my fetchXML to only show the last person who resolved the case, am I looking at this the wrong way, or do I need to create a sub-report that will run for each case in the main report?

<fetch distinct="true" >
  <entity name="incident" >
    <attribute name="title" />
    <attribute name="accountid" />
    <order attribute="title" descending="false" />
    <filter type="and" >
      <condition attribute="statecode" operator="eq" value="1" />
      <condition attribute="createdon" operator="on" value="2018-11-15" />
    </filter>
    <link-entity name="incidentresolution" from="incidentid" to="incidentid" link-type="outer" alias="ae" >
      <attribute name="modifiedby" />
    </link-entity>
  </entity>
</fetch>

How ı can found dynamics 365 product key?

$
0
0

Hello ,

Im Working It engineer in Eczacıbası company from Turkey.

We upgraded CRM Dynamics 365 but we can't found our product key .Could you help me about this problem?

Is it is possible before register(contact or user) in portal Email OTP Generation.

$
0
0

Hi All,

after R&D, i am unable to finalise the one client requirement, the requirement is "before register(contact or user) in portal Email OTP Generation, if it is valid OTP then only register user or contact in portal"

if it is Possible....???, any buddy have sample code or links or blogs please send me.

Thanks,

Chandra

User Impersonation in Dynamics 365 Customer Engagement( CRM )Plugin: Advanced Plugin Development

$
0
0

As the name suggests, impersonation in Customer Engagement means acting on behalf of another user.

Though impersonation is not available from front-end Customer Engagement login, it is possible to impersonate a different user while making API call to Dynamics 365 Customer Engagement (Customer Engagement).

The plugin registration tool of MS Customer Engagement already have an option to define the calling user for any plugin step:

Then why we need user impersonation explicitly in plugin code?

  • Because the run in user’s context property of a step makes the whole plugin code of that step run on this user’s context.What if we just want to impersonate a user to access some record which isn’t otherwise accessible to the calling user? Yes, in that case, we need explicit user impersonation in the plugin code.
  • Impersonation gives the Customer Engagement developer more flexibility to target a particular action in a plugin they would like to run with elevation permissions.  The rest of the plugin actions can be run as

There are 2 pre-requisites of user Impersonation:

  • The user (impersonator) must have the ActOnBehalfOf privilege or be a member of the PrivUserGroup group in Active Directory.
  • Setting the CallerId property of the organization Web service proxy.

User impersonation is very useful if you want to be able to do the following:

  • Test the correct implementation of security roles.
  • Check which records can be seen by which users if sharing is being used.
  • Search for charts or views belonging to different users.

ex 1:  Let’s say you have a complex scenario where you shared a record using automatic sharing in your code to certain users. Not to test whether these users can access the record properly is a time-consuming task. But using user impersonation in.Net code you can write a test suite where you can test the access to this record for a set of a user to whom you shared.

So you see how easy it is to do something using user impersonation whereas it would have taken time to do the same thing from the front end.

To impersonate a user, we have to set the CallerId property on an instance of OrganizationServiceProxy before calling the service’s Web methods.

ex 2: You have to give an on-demand custom workflow to users where the custom workflow is doing tasks which is out of the privilege of the user executing the workflow.

The problem is whenever we run the workflow on-demand, we get the UserId and IntiatingUserId as follows:

  • UserId: User running on-demand workflow
  • InitiatingUserId: User running on-demand workflow

And whenever any workflow get trigger automatically

  • UserId: workflow owned
  • InitiatingUserId: Triggering user

So in this scenario, out of the box, we can never get the user having sufficient permission as context user for workflow. So to overcome the problem, we can pass the user-id of some admin(the user having sufficient permission) in code as shown below:

Function to get user-id by full name [Continue Reading]

As the name suggests, impersonation in Customer Engagement means acting on behalf of another user.

Though impersonation is not available from front-end Customer Engagement login, it is possible to impersonate a different user while making API call to Dynamics 365 Customer Engagement (Customer Engagement).

The plugin registration tool of MS Customer Engagement already have an option to define the calling user for any plugin step:

Then why we need user impersonation explicitly in plugin code?

  • Because the run in user’s context property of a step makes the whole plugin code of that step run on this user’s context.What if we just want to impersonate a user to access some record which isn’t otherwise accessible to the calling user? Yes, in that case, we need explicit user impersonation in the plugin code.
  • Impersonation gives the Customer Engagement developer more flexibility to target a particular action in a plugin they would like to run with elevation permissions.  The rest of the plugin actions can be run as

There are 2 pre-requisites of user Impersonation:

  • The user (impersonator) must have the ActOnBehalfOf privilege or be a member of the PrivUserGroup group in Active Directory.
  • Setting the CallerId property of the organization Web service proxy.

User impersonation is very useful if you want to be able to do the following:

  • Test the correct implementation of security roles.
  • Check which records can be seen by which users if sharing is being used.
  • Search for charts or views belonging to different users.

ex 1:  Let’s say you have a complex scenario where you shared a record using automatic sharing in your code to certain users. Not to test whether these users can access the record properly is a time-consuming task. But using user impersonation in.Net code you can write a test suite where you can test the access to this record for a set of a user to whom you shared.

So you see how easy it is to do something using user impersonation whereas it would have taken time to do the same thing from the front end.

To impersonate a user, we have to set the CallerId property on an instance of OrganizationServiceProxy before calling the service’s Web methods.

ex 2: You have to give an on-demand custom workflow to users where the custom workflow is doing tasks which is out of the privilege of the user executing the workflow.

The problem is whenever we run the workflow on-demand, we get the UserId and IntiatingUserId as follows:

  • UserId: User running on-demand workflow
  • InitiatingUserId: User running on-demand workflow

And whenever any workflow get trigger automatically

  • UserId: workflow owned
  • InitiatingUserId: Triggering user

So in this scenario, out of the box, we can never get the user having sufficient permission as context user for workflow. So to overcome the problem, we can pass the user-id of some admin(the user having sufficient permission) in code as shown below:

Function to get user-id by full name

CRM not rendering properly in IE 11

$
0
0

Has anyone seen this before? Missing letters everywhere:

Client is using IE v11.785.16299.0. Restarting IE fixes it for a period of time but it comes back. Cleared cache.


Call a Python script from CRM Dynamics

$
0
0

Hello,

My question is all hypothetical, as I did not start working on the matter yet.

Would it be possible to call a python script that whould use some data from Dynamics CRM ? How would it work ?

I guess Dynamics is unable to run python directly but it should be able to call a python script with python installed on the same server ?

I have basically no experience regarding webservices, if necessary, could you please suggest some documentation I should get working on ?

Best Regards,

Antonin

Exporting file on Microsoft Edge is not working

$
0
0

Hi there,

I'm trying to export a file using edge but it's not working. Please advise. 

Thanks,

Ritz

CRM Reporting Extension Installation on SQL-Server without named instance

$
0
0

hello

someone can help me.
Dynamics CRM 365. Environment Server1 with Crm installation, Server2 with SQL Server.

The SQL CRM instance is default and has no name. I can't install the Dynamics SSRS. Instance Name is empty and greyed out
I expected the installation to recognize that it is not a named instance and continue directly with the installation.
Can you help?
Thanks

Dynamics Customer Portal: Process set wrong DateTime values (TimeZone)

$
0
0

On the Portal websites we defined a webformular with two steps (based on the campaignresponse entity)

1.      Insert a campaign response (based on the selected campaign)

2.      Update some values on the same campaign response

 

Everything works fine. One the campaignresponse there is an action (category workflow, on create campaignresponse ). The workflow writes the processing datetime and record creation datetime into a text field. The result appears in the CRM. But there is a different time zone (one hour behind the local time). How can we solve this problem?

 

CRM Version 1710 (9.1) online

How to integrate powerbi embed for customers and organization using javascript?

$
0
0

I want to integrate powerbi embedding for customers and organization in my dynamic crm solution. When I go to this url below:
app.powerbi.com/embedsetup

to setup embed, after all  steps they are providing sample code for .net platform like authenticating and getting embed url, embed token etc. in c#. But I need same code for javascript.
I have seen their javascript api code here: github.com/.../PowerBI-JavaScript

But didn't find any code there to authenticate to powerbi and get embed url, token etc. using that js codes. Can anybody suggest what I can do now?

Viewing all 46379 articles
Browse latest View live