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

Can not assign task to a team entity

$
0
0

Hi Guys, I am creating a plugin, where i just need to assign a task to a team, the plugin tiggers an error and it is registered in the post event and a Create message name to a custom entity. I have debugged it and it gives this error - "System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Principal team (Id=9d666867-b59b-e811-8140-70106faaf8c1, type=9) is missing prvReadActivity privilege (Id=650c14fe-3521-45fe-a000-84138688e45d) (Fault Detail is equal to Exception details: ErrorCode: 0x80042F0A".

My code is below:

if(context.InputParameters.Contains("Target") && context.InputParameters["Target"] is Entity)
            {
                Entity travelDetail = (Entity)context.InputParameters["Target"];

                if(travelDetail.LogicalName != "gg_traveldetail") { return; }

                try
                {
                    QueryByAttribute teamQuery = new QueryByAttribute("team");
                    teamQuery.AddAttributeValue("name", "Travel Consultants");

                    EntityCollection retrievedTeam = service.RetrieveMultiple(teamQuery);

                    Entity travelConsultantTeam = (Entity)retrievedTeam.Entities[0];

                    Guid travelconId = travelConsultantTeam.Id;


                    Entity task = new Entity("task");

                    task.Attributes["subject"] = "New Travel Booking Created";
                    task.Attributes["ownerid"] = new EntityReference(travelConsultantTeam.LogicalName, travelconId);
                    task.Attributes["description"] = "A new travel booking has been created for a staffing role.";

                    if (context.OutputParameters.Contains("id"))
                    {
                        Guid regardingobjectid = new Guid(context.OutputParameters["id"].ToString());
                        string regardingobjectidType = "gg_traveldetail";

                        task.Attributes["regardingobjectid"] =
                        new EntityReference(regardingobjectidType, regardingobjectid);
                    }

                    service.Create(task);

Thanks for the help guys.


Documents Core Pack - Cloud Printing

$
0
0

Hello

Our documents seem to be held up in the cloud and are not coming to our local printer.  What could be the issue here and how would I resolve?

Thanks

System date cannot be set to a date in the future

$
0
0

Dear Team,

Good day.

I am using CRM Destination(using KWS) in my SSIS Package. sometimes i am getting below error. Can you please guide me to resolve this one.

ERROR:

Error: An error occurred with the following error message: "KingswaySoft.IntegrationToolkit.DynamicsCrm.CrmServiceException: CRM service call returned an error: System date cannot be set to a date in the future(Error Code: -2147220935, Detail Message: System date cannot be set to a date in the future) (SSIS Integration Toolkit for Microsoft Dynamics 365, v8.0.0.6228 - ISServerExec, v11.0.5058.0)    System.ServiceModel.FaultException<KingswaySoft.DynamicsCrmServices.Soap2011.OrganizationService.OrganizationServiceFault>: System date cannot be set to a date in the future    ".  

Regards,

Kanna

Invalid User Authorization opening contacts for a single user

$
0
0

Hello,

I have a single user who when trying to view contacts is receiving a "Invalid User Authorization: The user authentication passed to the platform is not valid" error. They are able to perform all other functions without error. I have copied the database/organization back to a test environment and the issue repeats itself there. In the event log on the server there is an error message about "GUID should contain 32 digits" anytime this users tries opening a contact. I have tried many things including changing security (to Admin), restarting all servers in the environment, deleting views and many others. The only thing that has worked so far is creating a new user linked to the same AD account but nothing will fix the current broken user. Any help would be appreciated.

The version is Dynamics 365 1612 hosted on premise

Thanks!

Ben

get a list of previous incomming emails

$
0
0

Hi guys, 

All my incoming email go into a queue. 

I get automatic alerts from customers (like power fail and power restore) and would like to match them up and eliminate them. 

some times during the night there are hundreds of these emails and the task is boring for my staff to clean.

I already have a plugin that does things when an email comes in but  i'm not sure what to query to get a list of emails that are still in the queue (have not been cleaned yet)

My Plan is to act when I get an Email with power Restore and eliminate any old email still in the queue with the power fail mention (from the same customer) 

Can I query expression on the Queue Item entity or should i do with email entity, (to get a list of previous emails that are in my queue?)

UriFormatException

$
0
0

Hi, I have recently upgraded from CRM 2011 to CRM 2016. When i tried to create a couple of workflows, I have been Getting the generic Error saying, "Error occurred Please try this again". This error occurs when i try to set the property of a task in the workflow. But when i change from Task to a different related entity i don't get this error.

After Checking the event log on the server, I found that a UriFormatException is getting thrown with the exception message "Invalid port Specified".

Exception information:
Exception type: UriFormatException
Exception message: Invalid URI: Invalid port specified.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at Microsoft.Crm.Application.Components.Sdk.FormControls.Web.FrameControl.Render(HtmlTextWriter output)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at Microsoft.Crm.Application.Components.UI.CrmUIControlBase.RenderControl(HtmlTextWriter writer)
at Microsoft.Crm.Application.Forms.FormCell.RendorControlOutput(HtmlTextWriter output, Control control, FrameControl frameControl)
at Microsoft.Crm.Application.Forms.FormCell.Render(HtmlTextWriter output)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at Microsoft.Crm.Application.Forms.FormRow.Render(HtmlTextWriter output)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at Microsoft.Crm.Application.Components.UI.CrmUIControlBase.RenderControl(HtmlTextWriter writer)
at Microsoft.Crm.Application.Forms.FormSection.Render(HtmlTextWriter output)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at Microsoft.Crm.Application.Components.UI.CrmUIControlBase.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at Microsoft.Crm.Application.Components.UI.CrmUIControlBase.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at Microsoft.Crm.Application.Forms.FormTab.Render(HtmlTextWriter output)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at Microsoft.Crm.Application.Forms.FormBody.Render(HtmlTextWriter output)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at Microsoft.Crm.Application.Components.UI.CrmUIControlBase.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at Microsoft.Crm.Application.Forms.CustomizableFormExtended.RenderChildren(HtmlTextWriter writer)
at Microsoft.Crm.Web.Sfa.WorkflowEntityForm.Render(HtmlTextWriter output)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at Microsoft.Crm.Application.Components.UI.CrmUIControlBase.RenderControl(HtmlTextWriter writer)
at ASP.crm2016_sfa_workflow_entityform_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint.

Thank you. 

Portal request timeout when opening a specific web form

$
0
0

Dear all,

we are having issues in configuring the CRM Portal due to an unknown error as the title says.

Already tried to reproduce the webform and put it again on the web page but still not working. It seems that the webpage is fine but as soon as we include the form it bugs. 

Also cleared the cache, set portal off/on etc.

Did you see a similar issue when opening a specific page or form and it tries to load for like a minute without responding?

Is there any setting you can switch in the wrong direction by accident? We have something like a business process to capture data in different steps using one custom form.

Any clues / ideas / help much appreciated.

Patrick

Contracts, Contract Line Items, and Contract Templates entities are deprecated in Dynamics 365...

$
0
0

I am currently on CRM 2016, but saw that Contracts, Contract Line Items, and Contract Templates entities are deprecated in Dynamics 365.  Does anyone know what I would need to do to ensure I don't lose any of the records/information that I have in Contract, Contract Line Items and Contract Template entities when I upgrade to 365?


Marketing List - Email Campaign

$
0
0

Hi,

Is there a way of creating Email campaigns using emailaddress2 and emailaddress3 fields rather than using primary email address field. 

We capture email addresses of the contacts in 3 different email fields and would like to use one of these email fields to send emails using email campaigns.

When I tried creating the Marketing list, CRM is picking primary email address only.

Appreciate your thoughts and work around for this problem.

Portal configuration in CRM restore

$
0
0

Hi 

I would like to restore our CRM Online to a previous state/nstance (yesterday) and was wondering whether or not the Portals configuration and settings within the Portal elements (Content Snippets, Web Forms, Entity Forms etc.) is a part of this reset?

Best Regards, 

Casper 

Is there a way to delegate workflow approvals for a user on vacation?

$
0
0
A user is going on vacation. Is there a way for him to setup a delegate to handle any workflow approvals on their behalf?

Documentation tool for MS CRM

$
0
0

Hi,

Any suggestions on a good documentation tool for MS CRM.

Thanks

How to run jquery in any of the crm form

$
0
0

Hi,

I'm new to Jquery, I want to retrieve some values on click of save button.

code goes like this. 
<script type="text/javascript"> 
 
        $(document).ready( function() {
           
            
            $('#btnTesting_Click').click(function () {
                event.preventDefault();
               
                var customerData = {
                    "Id": ,
                    "Code": " ",
                    "Name": " ",
                    "ShortName": " ",
                    "Type": " ",
                    "Address1": " ",............
 

How do i call this when the record gets saved.

I'm using this for WCF services.

 

Please Help.

Thank you.

Custom Workflow compiles and deploys, but new code does not take effect

$
0
0

I am working with Dynamics 365 (8.x) online.

I am a new CRM developer working through some bugs.  I come to the development side from several years of CRM integration/migration and reporting.

I was able to update a custom workflow on Monday with few new lines of code.  The workflow compiled and deployed successfully.  One of the new additions worked as desired, the other did not.  I have tried various changes to get the second addition to work, but nothing has 'appeared' to make a difference.  After many attempts at fixing the code and deployments, I suspected that the deployment of the workflow was not actually taking effect, so I comment out the successful first addition and redeployed.  Still no change in D365.  No matter what I change and deploy, the workflow remains the same as the first deployment I made on Monday.  Yesterday, I tried incrementing the  revision number of the workflow assembly; we have not been doing that.  Still no change.

Can anyone suggest other avenues that I can try?  We would prefer to not unregister the workflow.  This would be a last resort.

Thanks for your insight and help

Calling sub grid with in the sub grid of entity form

$
0
0

I got a requirement to develop a application on Portal. User can add up to details of 10 members  and each person can add 10 activities. To achieve this requirement I tried to call the sub grid(Add activity) with in the another sub grid (Add Person). I created the CRM Forms, entity forms and maintained the metadata for each sub grid. On the portal i can't able to see the sub grid with in the sub grid. Please help out on this. 

1st Sub grid on main page

 2nd sub grid with in the above subgrid

On Portal

If i click the create button on above screenshot... I am not able to see another subgrid on that page

Version Dynamics 365 On prem


Solution Import failed...Option set IsGlobal (False) doesn't match with the one from existing option set (True).

$
0
0

When trying to import a solution I get the following error when I checked the log file:

<Cellss:StyleID="s137" name="ErrorCode"><Data ss:Type="String">0x80048403</Data></Cell><Cellss:StyleID="s137" name="ErrorText"><Data ss:Type="String">Option set IsGlobal (False) doesn't match with the one from existing option set (True).</Data>

I went through all the fields for this certain entity and the fields are setup the same.  I am not sure how to correct this, any ideas are appreciated, thank you in advance.

Javascript to hide/show section

$
0
0

I have the following code to hide/show a section but it's failing and I don't know why. Anyone able to help?

function showHideSection(){
	var type = Xrm.Page.getAttribute("new_digitalmarketingtype").getValue();
	
	if (type == 172960000){
		Xrm.Page.ui.tabs.get(“DigitalMarketing”).sections.get(“section_3”).setVisible(false);
		Xrm.Page.ui.tabs.get(“DigitalMarketing”).sections.get(“section_7”).setVisible(true);
		Xrm.Page.ui.tabs.get(“DigitalMarketing”).sections.get(“SEO_SEM_MA”).setVisible(true);
	}
	else if (type ==100000000){
		Xrm.Page.ui.tabs.get(“DigitalMarketing”).sections.get(“section_3”).setVisible(true);
		Xrm.Page.ui.tabs.get(“DigitalMarketing”).sections.get(“section_7”).setVisible(false);
		Xrm.Page.ui.tabs.get(“DigitalMarketing”).sections.get(“SEO_SEM_MA”).setVisible(false);
	}
	else{
		Xrm.Page.ui.tabs.get(“DigitalMarketing”).sections.get(“section_3”).setVisible(false);
		Xrm.Page.ui.tabs.get(“DigitalMarketing”).sections.get(“section_7”).setVisible(false);
		Xrm.Page.ui.tabs.get(“DigitalMarketing”).sections.get(“SEO_SEM_MA”).setVisible(false);
	}
}

Getting this error. One of the scripts for this record has caused an error. For more details, download the log file.
ReferenceError: showHideSection is not defined at eval (eval at RunHandlerInternal (devarinet.crm.dynamics.com/.../ClientApiWrapper.aspx), <anonymous>:1:1)

Email configuration(server side sync)

$
0
0

1.When Case is Closed , incoming emails are not hitting the CRM . 

I was able to get earlier... Is it because of any changes in Email Configuration Settings?

2.I was able to send email from an email ID which is not part of the CRM.

it's working sometimes.

3.What if the token ID and the Subject is missing on reply email?

Please suggest some solution

using REST API with JavaScript

$
0
0

I'm new to use REST API with JavaScript for Dynamics CRM, i'm using the CRM Rest Builder to crate the API, would anyone care to share how to use REST API with JavaScript function. any code snippet you use, if i could use as a example, i would greatly appreciate that.

Thanks!

( for example i'm trying to do is get a option-set value from one entity and pass it to different field in another entity ) 

error when saving a business rule

$
0
0

Hello experts,
It turns out that I am trying to save a business rule in my project, but I have a problem. Clicking on save or activate presents this error that does not tell me anything.

Any answer would be very helpful,
thank you very much greetings

Viewing all 87499 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>