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

fetch xml - nested filter based on results from previous fetch

$
0
0

Hi,
I'm trying to  do a fetch on some conditions of type and, one of this is that the id of the entity is equal to one in a group I retrieved from a previous fetch, so it's an or nested in an and, like this:

<fetch ...><entity name="aaa"><attribute name="bbb"/>
        ....<filter type="and"><condition attribute="type" value="1" operator="eq"/>
            ...<filter type="or"><condition attribute="id" operator="eq" value="prev-result-1"/><condition attribute="id" operator="eq" value="prev-result-2"/>
                ...</filter></filter></entity></fetch>

However, this doens't work. If I remove the or filter the fetch retrieves some records, but, when I include it, the fetch retrieves nothing while it should find one entry. Unfortunately, the only case on which I can test retrieves only one record from the previous fetch, could it be that the or is not working because it is on a single condition or is it something else?

Thanks

Custome workflow activity

$
0
0

I am very new for writing custom workflow activity

can anybody tell me how can i retrive last modified related records from subgrid for perticular record using fetch xml.

Scenaro:

i have case entity and Case-contact

case entity have subgrid of Case-contact

i want to retrive last modified Case contact if case have multiple Case contacts.

can anyone share code for this.

custom workflow activity

$
0
0

I am very new for writing custom workflow activity

can anybody tell me how can i retrive last modified related records from subgrid for perticular record using fetch xml.

Scenaro:

i have case entity and Case-contact

case entity have subgrid of Case-contact

i want to retrive last modified Case contact if case have multiple Case contacts.

can anyone share code for this.

Email Router Error "You cannot add items to an inactive queue. Select another queue and try again. "

$
0
0

Hello guys,

In a customers CRM there is an Email Router set up in order to receive email in the CRM portal.

The error i am getting in the event viewer is something like this: 

"#9628 - An error occurred while delivering the email message with subject "subject" in mailbox test@test.com for delivery to http://crmsrv/CRMORG. System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: You cannot add items to an inactive queue. Select another queue and try again. (Fault Detail is equal to Microsoft.Xrm.Sdk.OrganizationServiceFault). "

The queue that receives incoming emails from the specified mailbox is active and receives emails.

The business logic of the customer is once the email is delivered to a linked queue it is transformed into a case based on some rules.

The problem in this is that multiple users use the outlook client and sometimes delete emails.

After contacting the customer, i asked them to find the specified by the error subject of the email but they could not find any emails with this subject.

I am guessing that the Email Router fails to process the email once deleted.

Is the above practice valid? Should users use the outlook client and delete emails or should they delete emails from the CRM portal? Are my assumptions correct?
Is there any kind of a guideline in such cases?

Not able to select areas to display this entity

$
0
0

Hi - 

I am not able to select any option from Areas to display this entity. (quote detail) All the options are unchecked.

thank you

import template

$
0
0

hello, I made an xls file for importing product quotas.

first time I'm importing the file I made a "template" to avoid redoing the mapping every time.

I saw correctly the template in mapping data area


The problem is that I'm not able to use this model cannot because the quote product entyty is not visible and cannot be set as visible abd the 

and the IMPORT DATA button when I open an entity is the only system I know to use import templates

is there another way to use this template?

Using Out of the box command bar javascript functions in Custom command bar buttons

$
0
0

Hi 

I have a requirement in Dynamics 365 8.2, just to give users an alert before sending an email. When users click on the send email button they want to see an alert are you sure you want to send this email. clicks ok (Yes) email will be sent. 

I created a custom send button and using below javascript action instead of updating out of the box button. Send email button uses send() function. I am using this function in my script below. Is this below script is fine or I have to mention the javascript library (/_static/activities/email.js) for send function explicitly? 

function EmailSendAlert()
{
//debugger;
Xrm.Utility.confirmDialog("Are you sure you want to send this Email", function(){ send(); },function(){return;});
}

Dynamics CRM 365 Switching Forms Depending On Fields

$
0
0

Hi All,

I have a request from one of my customers whereas they would like some logic added whereas depending on what is selected on one of the fields it shows the corresponding form to the user, is this possible without having to do java etc..?

Example:

Click onto a customer record, the customer status is equals to shop so load the Shop form

Customer status = charity so show the charity form.

Hope this makes sense, any help or guidance appreciated.

Andrew


Child Workflow issue. ProcessSession With Id "" does not exist.

$
0
0

Recently one of our dialog started giving us errors when running it.

The dialog wiill end up running and evertyhing is done but there seems to be an issue affecting the parent-child relationship in workflows. It does not matter what is in the child workflow as soon as we create a dialog and call a child workflow we get the aforementioned error message:

ProcessSession With Id = "" Does Not ExistDetail

:<ErrorCode>-2147220969</ErrorCode>.

We have tested in both our prod and dev environement and the issue will happen 100% of the time if a child workflow is included in the dialog steps.

t

Object reference not set to an instance of an object

$
0
0

HI All, 

I am working on Automation of exporting the Solution from On-Premise Dynamics CRM 2016 through the powershell script provided by  /xrm-ci-framework and receive below errors. 

when i execute the powershell Script sometimes it works fine connecting to CRM and when comes to Export Task it throws me an error as below 

Sometimes it throws me an error as Object reference not set to an instance of an object

does anyone face same kind of issues ? 

Portal front-end editor broken - new install

$
0
0

I have to ask, when Microsoft change something what testing do they do?

Just installed a new Dynamics 365 Trial and added the Community Portal.  The front-end editor for the Portal appears to be broken, 

  •  Editable content is not showing as editable when it is hovered over
  •  Primary Navigation shows as having an Edit, but when click it starts a Loading indicator but then nothing is displayed, F12 and the following errors are being thrown (same errors in Chrome & Edge)

xrm-combined-js.aspx:38 Error parsing response JSON: TypeError: Cannot read property 'adx_displayorder' of undefined

XRM.log @ xrm-combined-js.aspx:38
(anonymous) @ xrm-combined-js.aspx:247
validateLoginSession @ postpreform.bundle-8f19ecc32b.js:1
success @ xrm-combined-js.aspx:273
l @ preform.bundle-c66ccc15db.js:2
fireWith @ preform.bundle-c66ccc15db.js:2
l @ preform.bundle-c66ccc15db.js:2
u @ preform.bundle-c66ccc15db.js:2
XMLHttpRequest.send (async)
send @ preform.bundle-c66ccc15db.js:2
ajax @ preform.bundle-c66ccc15db.js:2
ns.getJSON @ xrm-combined-js.aspx:263
(anonymous) @ xrm-combined-js.aspx:446
dispatch @ preform.bundle-c66ccc15db.js:2
g.handle @ preform.bundle-c66ccc15db.js:2
xrm-combined-js.aspx:2319 Uncaught TypeError: Cannot read property 'd' of null
    at Function.self.renderEditDialog (xrm-combined-js.aspx:2319)
    at Object.loadSuccess (xrm-combined-js.aspx:2238)
    at success (xrm-combined-js.aspx:451)
    at xrm-combined-js.aspx:248
    at validateLoginSession (postpreform.bundle-8f19ecc32b.js:1)
    at Object.success (xrm-combined-js.aspx:273)
    at l (preform.bundle-c66ccc15db.js:2)
    at Object.fireWith [as resolveWith] (preform.bundle-c66ccc15db.js:2)
    at l (preform.bundle-c66ccc15db.js:2)
    at XMLHttpRequest.u (preform.bundle-c66ccc15db.js:2)
 

What is this new data type "File"

$
0
0

Went to create a new attribute today, and saw a new item "File" at the end of the list of data types.  I can't find any info on it so wondering what is it and how is it meant to be used etc etc.

Prevent Duplicate On creation of Appointment Booking in CRM

$
0
0

Hi All,

I have to prevent creation of Appointment Booking record if same resource with the startdatetime & enddatetime exist & in between time also if we select it shouldn't create.

I am using fetch query in plugin can we achieve this becz in fetch condition strt & end time what to select gt or lt or on or after strt date & on or before end date as ? or any other way we have to do ?

Any help could be appreciated.

Thanks,

Jharana

Does Microsoft CRM 365 support Arabic Calender (Hijri Calender)

$
0
0

Does Microsoft CRM 365 support Hijri calender?

If we configure the CRM in Arabic version does it support Hijri Calender?

Docusign Folder layout issue

$
0
0

We are noticing a chnage in the folder layout in the document folder. We have docusign integration in our instance.

We see a new folder created for ocusign in CRM as well as in the sharepoint site.

Whern a document is signed and returned back electronicaly it is not landing in the docusign folder or anywhere in the document list (both in CRM and sharepoint).

Question: Anyone has an idea why is the 'Docusign'  folder created and what is the use of it. Also, where are the signed documents going?

Previously:


how to switch BPF based on field value

$
0
0

Hey!

I have 2 or 3 BPF and I want to switch between them based on field value ? I tried with workflows (Action and set Process) but when I change the value, nothing changes! and the old process stays. Is it not supported anymore? do I have to do this with JavaScript.

Thanks a lot!

How to include record url in email template as dynamic value using plugin

$
0
0

Hi,

I am sending an eamil using email template from plugin code. I have requirement to include record URL dynamically in email template.

Could some one provide inputs/sample code how to achieve this using plugin code.

Thanks,

Automatically disabled account

$
0
0

Hi everyone

We are trying to start with CRM Online. One of the first things we did was activate a sandbox environment that we attached to a group in our Azure AD. Works like a charm, all the users in that group (and all the users that are in groups that belong to that group) are added to CRM as users. Perfect. But... My own useraccount, wich we gave the systemadmin role, got disabled automatically. We found a way te reactivate it, but after a while it got disabled again.

We can't find any differences between my other account (I have two), that I set up in the exact same way, with the same licencing, groups, roles, ...

Is there any way to find out why my first account got disabled and my second didn't?

Thanks for any reply...

Kind regards
Thomas

Ribbon Workbench Display Rule with JavaScript

$
0
0

Hello. Since xrm.page has been depricated I try to move over to using ExecutionContext instead but I run into problem.

In the display rule I have added a crm parameter with primaryControl

The javascript fails on:  var formContext = parentControl.getFormContext();   

And the beginning of the javascript looks like:

function IsCurrentUserOwner(parentControl)

{

  var formContext = parentControl.getFormContext();   

 

  var owner= formContext.getAttribute("ownerid").getValue();

  var ownerID = owner[0].id;

  var userId = Xrm.Page.context.getUserId();

  if (ownerID == userId ) {

     return true;

  } else { 

                return false;

  }

 

}

 

 Can someone point out what I have missed?

Add Form properties -> parameters programmatically through c# or Js

$
0
0

Dear Experts,

We are undergoing with situation where we want to add the Form Parameters value from code either from Js or C#.

Like above parameter we want to add it through code.

Thanks in advance.

Viewing all 79901 articles
Browse latest View live


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