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

please help me out how to delete/Enable a lock to the look up filed in Dynamics CRM

$
0
0

How to enable this contact lookup filed in dynamics CRM for users.please help me out 


AddCustomView gives XML reference error

$
0
0

Hi, i want to addcustomview to my look up field. But its give me XML reference error. Could you tell me where is the mistake within my code:

Fetch XML:

"<fetch>"+
"<entity name='lnkt_damage' >"+
"<attribute name='lnkt_damageid' alias='DamageId' />"+
"<attribute name='lnkt_name' alias='DamageName' />"+
"<attribute name='lnkt_subdevicename' alias='SubDeviceName' />"+
"<attribute name='lnkt_device' alias='DeviceName' />"+
"<attribute name='createdon' alias='CreatedOn' />"+
"<filter>"+
"<condition attribute='lnkt_device' operator='eq' value='"+device_id+"' />"+
"<condition attribute='lnkt_subdevicename' operator='eq' value='"+subdevice_id+"' />"+
"</filter>"+
"</entity></fetch>"

Layout XML:

"<grid name='resultset' "+"object='1' " + "jump='lnkt_name' " + "select='1' " + "icon='1' " + "preview='2'>" +
"<row name='result' " + "id='lnkt_damageid'>" +
"<cell name='lnkt_name' " + "width='150' />" +
"<cell name='lnkt_subdevicename'" + "width='150' />" +
"<cell name='lnkt_device'" + "width='150' />" +
"<cell name='createdon' " + "width='100' />" + "</row>" +"</grid>"

i have make sure that the fetch XML working fine through FetchXMLBuilder

Error Status on Deployment Manager

$
0
0

Hi everyone, checking my organization on my deployment manager see an error on the status.

Somebody know the reason?

Javascript By lookups field

$
0
0

Hallo,

I need your help,i try to create a javascript code for this scenario:

i want to add a lead then a company for this lead i want that when i go to new "company" that the field name (Lead ) be automatically set as company name.


Thanks.

Changing entire toolbar color in USD Unified theme

$
0
0

I am trying to change the color of the USD main toolbar, under the Unified Blue theme. But am only able to change the part of it not covered by buttons. 

This is some thing I've been able to do in the old Air theme by using the following XAML SolidColorBrush values, via the SetTheme action in CRM Global Manager:

<SolidColorBrush x:Key="WindowHeaderToolbarStyle" Color="red"/>

<SolidColorBrush x:Key="AboutPanelBackground" Color="Transparent"/>

Is this a case of simply changing a different key in the Unified Blue theme?

Any help would be appreciated.

Cheers,

Raj

How many new installation can be possible by using CRM 2016 single on premise server license

$
0
0

Hi,

How many new installation can be possible by using CRM 2016 single on premise server license.

We want to setup three CRM environments as below,how to know whether existing license works for below three or not.

  1. Production
  2. Staging
  3. Development

Exclude "This Month" operator to get a YTD View in Advanced Find?

$
0
0

Creating YTD reports from Advanced Find is problematic.

I am in July, but want to run a report showing data for June YTD, so I need to exclude the data from current month.

The 'This Year' operator allows me to get all data for this year, but doesn't exclude 'This Month' - I was hoping to do a Group AND where I could group 'This Year' and 'Not This Month', but there's no option for 'Not This Month', just 'This Month'.

Has anyone got a solution for this?

(Using MS Dynamics 365 Online)

Security Roles : Providing Access to the Parent & Child records dynamically.

$
0
0

Hi everyone,

I have an requirement when user( field name 'manager') selected  from the look up field on the account form, have to provide read/write permissions to the selected user . Initially users don't have read&write permissions. for this i'm using plug-in & access teams. At the same time  user needs read&write permissions for the account child records. for this i think i can achieve same way like using access teams & plug-in but the problem is need to trigger plug-in on UPDATE of parent record manager field & CREATE child record messages on two different entities. i have 3 more entities to configure security in a same manner .  Is there any simple way or work around to provide access to the parent/child records???.  Thanks in advance.


Unique identifiers

$
0
0

Are the unique identifiers unique only inside the organization or completely unique? Meaning can I export contacts from my organization's dynamic instance and import them into another organization's dynamics instance and not have clashes of ids?

how to convert string type into date time data type field CRM

$
0
0

how i can convert a string to YYYYMMDDMMHHSSFFF dateandtime field

CRM 2011 Deployment manager: Unable to connect to the remote server http://XXXXXXX/ReportServer_INST01

$
0
0

Hi 

I have a CRM 2011 On premise system. I am trying to create a new organisation in deployment manager and it gives me this error. 

Could you help me how to achieve fixing this error please?

Microsoft SQL Server Reporting Services: Unable to connect to the remote server XXXXXXX/ReportServer_INST01

Thanks

Arj

relations between opportunity contact and account

$
0
0

I'm trying to fetch information about contacts and opportunities through the api, as I read in the docs contact endpoint docs. For a given contact that has an account linked to it the api returns `null` for _accountid_value field but the account id is returned in this field: _parentcustomerid_value. What is the difference between. What is the difference between both fields?

In the documentation for _accountid_value the description is "Unique identifier of the account with which the contact is associated."  and for _parentcustomerid_value: "Select the parent account or parent contact for the contact to provide a quick link to additional details, such as financial information, activities, and opportunities.".

What is the difference between parent account and an "associated" account?

Same goes for opportunities there are _accountid_value _customerid_value and _parentaccountid_value _parentcustomerid_value. When is an account considered parent?

Retrieve all users a record is shared with in D365 using WebApi.execute and "RetrieveSharedPrincipalsAndAccess" function

$
0
0

Hi All,

I am trying to get all the users or teams to with whom the current record is shared. Am trying to achieve this using the Xrm.Webapi.execute method and the unbound function


<FunctionName="RetrieveSharedPrincipalsAndAccess">
<ParameterName="Target"Type="mscrm.crmbaseentity"Nullable="false"/>
<ReturnTypeType="mscrm.RetrieveSharedPrincipalsAndAccessResponse"Nullable="false"/>

Am using the below piece of code to get the list on account load.
function RunAction() {
var Id = Xrm.Page.data.entity.getId().replace('{', '').replace('}', '');
var target = {entityType:"account",id:Id};

var req = {};
req.Target = target;
req.getMetadata = function () {
return {
boundParameter: undefined,
operationType: 1,
operationName: "RetrieveSharedPrincipalsAndAccess",
parameterTypes: {
"Target": {
typeName:"mscrm.crmbaseentity",
structuralProperty: 5
}
}
};
};

Xrm.WebApi.online.execute(req).then(
function (data) {
var e = data;
debugger;
},
function (error) {
debugger;
var errMsg = error.message;
}
);
}

At run time am getting the exception Resource not found for the segment 'RetrieveSharedPrincipalsAndAccess'.
any clue what I am missing here ?

OAuth 2 Client Credentials Flow Supported for CRM API?

$
0
0

Unfortunately, when registering an Application in AAD for access to the Dynamics API, only the 'Delegated Permissions' is electable, and I believe that 'Application Permissions' is what's required for a Client Credential flow.  

Our web app cannot facilitate an Authorization Code flow.   We might use a 'service account' credential, but to get this to work it appears necessary to configure the App as a public client, which is not secure.

What other options do we have here?   

Thank you!

Best way to update target in field mapping when source field is changed

$
0
0

Hi,

I have a custom entity with a lookup to the contact entity and I have this field mapped to a field on a custom activity entity. The relationship between entity 1 & entity 2 (activity) is 1:N.

The issue I'm having is that upon changing the contact lookup on entity 1, the target lookup that is mapped in entity 2 remains the same. I need it to change when the source lookup is altered.

I believe I can do this with a workflow but I'm trying to find a simpler or more efficient way to do this. If anyone has any suggestions, please let me know.

Thanks for your help


Is it possible to create tooltips for option set values with custom code?

$
0
0

I know this isn't native functionality, but would it be possible to add tooltips for option set values through javascript or C# plugins?

All of the older posts I've seen have all said this isn't possible, but don't explore how to go about this through custom code. The closest thing I could find was this forum post which shows how to add tooltips to fields before it was implemented in CRM, but I'm still unsure how I would reference the specific option set values.

I'm not asking for fully fleshed out code, but if someone has any guidance on something I could try, I would greatly appreciate it.

Thanks!

ExchangeSyncUserClientIdOutdated

$
0
0

I am looking if anyone knows what the error ExchangeSyncUserClientIdOutdated means and how to fix it?  I cannot find any documentation listing this error code.

Trying to make API call from Grid with Javascript

$
0
0

I am needing to update a fields on an editable grid. I want to select the records on the grid, then press a button that executes code to update the field on the form of all the selected records. Here is my code so far: 

function getIds(selectedItems) {
	for (var item in selectedItems) {
        if (selectedItems.hasOwnProperty(item)) {
            fetchData(selectedItems[item].Id);
        }	
   	} 
}



function fetchData(appointment_id) {
	Xrm.WebApi.retrieveRecord("appointment", appointment_id, "?$select=_regardingobjectid_value").then(
    function success(results) {
        var clientId = results["_regardingobjectid_value"];
		getCarOne(clientId);
	});
}

function getCarOne(clientId) {
var req = new XMLHttpRequest();
req.open("GET", Xrm.Page.context.getClientUrl() + "/api/data/v9.1/new_cars?$select=_new_carOne_value,&$filter=new_status eq 100000001 and  _new_client_value eq" + clientId, true);
req.setRequestHeader("OData-MaxVersion", "4.0");
req.setRequestHeader("OData-Version", "4.0");
req.setRequestHeader("Accept", "application/json");
req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
req.setRequestHeader("Prefer", "odata.include-annotations=\"*\"");
req.onreadystatechange = function() {
    if (this.readyState === 4) {
        req.onreadystatechange = null;
        if (this.status === 200) {
            var results = JSON.parse(this.response);
            for (var i = 0; i < results.value.length; i++) {
                var _new_carOne_value = results.value[i]["_new_carOne_value"];
                var _new_carOne_value_formatted = results.value[i]["_new_carOne_value@OData.Community.Display.V1.FormattedValue"];
                var _new_carOne_value_lookuplogicalname = results.value[i]["_new_carOne_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
		
        } else {
            Xrm.Utility.alertDialog(this.statusText);
        }
    }
};
req.send();
}


What I am doing is:
1) selecting the records(all appointments) and getting the appointment record ID
2) using WebAPI to get clientID, then passing clientID into a new API call
3) using the HTTP request to get all car records with a certain status for each client. This is where the break happens. the req.send(); function doesn't seem to work from the grid
though it works just fine if I have the form open.
4) I have not got to this step yet, but the once I get the fields I need, I want to use that information to build a string to update a field with.

How to Retrieve Account data using Web Api in console application

$
0
0

I have requirement to retrieve account records by using webapi filter condition (Filter condition should have more than one value).

Can you please help me on how to connect CRM from console application using WebApi. Please share any sample working code

Thanks 

What should I replace a "Timeout Until" step with when converting background workflows to real-time workflows?

$
0
0

I have a bunch of background workflows that need to be converted to real-time workflows so that the "Modified By" field doesn't get updated with the workflow owner.  The problem is that a lot of the workflows that need to be converted have a "Timeout Until" step where the workflow waits one minute to run.  These "Timeout Until" steps are necessary, as there are plug-ins and other workflows that need to run first in order for these workflows to run correctly.

I do not believe it is possible to use "Timeout Until" in a real-time workflow.  My question is what should I replace "Timeout Until" with?  I want certain workflows to execute AFTER other workflows, so I need some sort of replacement.

Below is an example of a background workflow I need to convert to a real-time workflow:

Any help/workaround suggestions would be greatly appreciated.  Thanks!

Viewing all 82002 articles
Browse latest View live


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