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

Custom Action: Setting output parameters for response to javascript caller

$
0
0

How to set the output parameter in plug-in code so the javascript caller of the custom action will be able to read it?

Custom action is implemented in a plugin. There is an empty process (action) defined to specify input and output parameters. The plugin is registered at step 40.

Calling a custom action via javascript with ajax call to organization service using a SOAP message, which calls the action using the message 'new_NameOfAction'.

The code executes normally and returns a success response to the javascript caller.

The output parameter is set like this in the plug in code:

localContext.PluginExecutionContext.OutputParameters[Outputs.FieldErrors] = "some field error";

However, upon return to the javascript caller, the field is always null.

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">

<s:Body>

<ExecuteResponse xmlns="http://schemas.microsoft.com/xrm/2011/Contracts/Services">

<ExecuteResult xmlns:a="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><a:ResponseName>new_NameOfAction</a:ResponseName>

<a:Results xmlns:b="http://schemas.datacontract.org/2004/07/System.Collections.Generic">

<a:KeyValuePairOfstringanyType><b:key>FieldErrors</b:key><b:value i:nil="true"/></a:KeyValuePairOfstringanyType>

</a:Results></ExecuteResult></ExecuteResponse></s:Body></s:Envelope>


OnLoad Event getting error message

$
0
0

I created the JS below to DisableEnable a field.  Criteria, if field A is populated then field B is enabled.  If field A is not populated then field B is disabled.  When form loads I get this error:Object doesn't support property or method 'setDisable'.

function Form_OnSave()
 {
 }
 function Form_OnLoad()
 {
       setDisableSubPracticeArea()
 }
 function setDisableSubPracticeArea(){ 
       if (Xrm.Page.getAttribute("cpdc_primarypracticearea").getValue() == null){ 
       // If the value is null set field sub-practice area disable field
       Xrm.Page.getControl("cpdc_subpracticearea").setDisable(false); 
       } 
       else  if (Xrm.Page.getAttribute("cpdc_primarypracticearea").getValue() != null){ 
       // if value is not null then set visible sub-practicearea field 
       Xrm.Page.getControl("cpdc_subpracticearea").setDisable(true); 
       }
 }

While creating product in CRM 2013 using late bound we get error 'unit schedule id is missing.'

$
0
0

Hi All,

Am trying to create product in CRM 2013 using late bound.

At run time i get exception unit schedule id is missing.'

below is chunk of code where am setting uomscheduleid

Entity uomschedule = new Entity("uomschedule");
            uomschedule = CommonEntityOperation.getRecordIdByName("uomschedule", "name", "Default Unit").EntityCollection.Entities[0];
            Guid guid2 = (Guid)uomschedule.Attributes["uomscheduleid"];
            crmProduct.Attributes["defaultuomscheduleid"] = new EntityReference();
            crmProduct.Attributes["defaultuomscheduleid"] = guid2;


Auto remove Product after it is sold?

$
0
0

Hello everyone,

Is it possible to automatically remove a product from the product page after it has been sold? I tried creating a workflow, but I can not find any kind of connections to the product page..

History Records

$
0
0

Hi there,

Often times we get client's that change their company name and I'm wondering if it's possible that when we change the Account Name the old Account name is copied to a new field along with the date it was changed and the reason.

Thanks

Display Record Owned by anyone in my team

$
0
0

Hi,

I want to display all the cases that are assigned to anyone in my team in a view.

The default filter criteria only allows "Assigned to current user or assigned to current user's teams.

Is there a way add a different filter?

Thanks

Sorting lists by descending

$
0
0

Hi,

No matter how I configure the sorting in CRM, it seems to always default to ASCENDING even though I have chosen DESCENDING.

See picture below.  I have chosen to DESCEND the order of the Lead Names.  Although on 'My Dashboard' it still displays the names in ASCENDING order.  Same goes for Account Names.  I have refreshed and published all customizations several times so that is not the problem here.

What is causing this?

Records Merge fields

$
0
0

Hello everyone

I need to know how I can edit the fields that are displayed on the Merge Records screen. 


Scenario:  There are two identical Contacts in our CRM, with two different people designated as their "Owners".  When I select the two contacts and enter the Merge Records screen, I need to be able to select which Owner I want to keep. 

Now, I'm aware this is done by selecting the Contact as the 'Master Record'.  But I would like a field to be present on the Merge Records screen, allowing me to choose which Owner I would like to be assigned to the final Merged Contact.


Create a field in an Account and display by default this field into a Quote form

$
0
0

In the entity Organization, I created the field "Daily rate". In the main form of the Organization entity, I inserted the field into the Account information section where the Account name is: "Fabrikam, Inc. (sample)", and I entered $1,000.00 as "Daily rate", like shown below:

After that, I went into the Quote entity, I also created a new field "Daily rate". I went into the Relationships N:1 of the Quote entity to create a mapping between both fields "Daily rate" in a relationship where the Primary Entity is "Organization" and the Related entity is "Quote".

After mapping both "Daily rate" fields, I opened in design mode the main Quote form and I inserted the "Daily rate" field into the SALES INFORMATION section on the right. I saved the form and I published the customization.

 

I went back to the SALES section in the CRM 2015 and I created a Quote. In the SALES INFORMATION section on the right, I selected the Potential Customer "Fabrikam, Inc. (sample)", I saved it and activated the quote. The "Daily Rate" field remained empty.

 

What would be the way to link the "Daily Rate" field from an Account to view it by default when creating and saving a new Quote ?

The Quote form created in the CRM 2015 looks like this:

 

 

 

 

Product key - upgrade CRM 2013 to CRM 2015

$
0
0

Hi,

I want to do in place upgrade CRM 2013 to CRM 2015. Customer can upgrade, because they paid SA.


Can I use CRM 2013 product key? Is product key requested when upgrade?

Report GUID

$
0
0

Hi,

I am using Java Script to execute reports output based on our requirement.

In the java scripts i am using report guid for accessing the report. It is working fine in development environment.

But we deploy the solution into production environment reports guid changed and we need to modify the report guid into the Java scripts code at production server.

 

Please suggest how i mange this problem because we need to modify java scripts after every time when we import the solution into production server. After changed the new guid reports working fine.

 

Thanks & Regards,

Abhishek Srivastava

 

CRM customizations not visible on iPad

$
0
0

Hi,

I'm using the CRM for iPad app to connect to my organization. I've made some changes to the form (added some custom fields), but I don't see the fields on the iPad.

I already complete closed the app, but it doesn't pick up the changes...

What should I do?

Roel

having issues with simple code, please help :)

$
0
0

Here is my code: 

function new_declinedreason_onchange() {
var decisionValue = Xrm.Page.getAttribute('new_Reasoncustomerprospectdoesntuseproduct').getValue();

if (decisionOptionSetValue === 100000004 && decisionOptionSetText === 'Other') {
Xrm.Page.getAttribute('new_otherreason').setRequiredLevel('required');
}
else {
Xrm.Page.getAttribute("new_otherreason").setRequiredLevel('none');
}

}

Really all I want to do is say, if this specified value in the option set is selected, make the field below it business required.

Currently I am getting an error when selecting any value in the option set from the GUI, saying,..

Thanks,

Need to customize the Opportunity Close entity

$
0
0

I have a requirement for users to populate a specific field upon the closing of an Opportunity.  The optimal way to do this would be to add that field to the Opportunity Close form but it seems to not be editable.  Is there another way to accomplish this?

Workflow that assign and send email

$
0
0

Hello Everyone:

Why can I not get a workflow to

Assign a Lead to a User and send an email to that user telling them about the Lead.

I tried first sending the Lead and then Assign the Lead to the User.

When I do this the user never gets the email, but get the Lead.

What is the issue.

Any help would be great.


MSCRM 2013/2015 new Condition Operator "Under"

$
0
0

Hi ,

I have a fetchxml query which uses "Under" Operator. In the "value" i would like to pass a dynamic parameter.

How do i pass parameters to below query.

Suggest please...!!

<fetch distinct='false' no-lock='false' mapping='logical'>
  <entity name='account'>
    <attribute name='name' />
    <attribute name='accountid' />
    <filter type='and'>
      <condition attribute='accountid' operator='under' value='{654644E7-B170-E411-8103-9CB654953450}' />
    </filter>
  </entity>
</fetch>

 

Thanks&Regards,

Uma Kanumuri

Update Custom Field from one form to another

$
0
0

Hi

I have created a custom field in Quote Products, but want it to update a custom field on the Quote Form as well. Can someone tell me how to do this.

Kind Regards

Andrea

Default condition in Account and opportunity view

$
0
0

Hi,

There is default condition in all view of opportunity and Account.

If I got to customization, and edit filter criteria and remove and save it, to my surprise it reappears again.

This default condition is even in reports.

Does anyone know how to remove this condition.

Screen shot attached for your reference.

Regards,

Abhijeet

Outlook 2015 client "Wrapping up" popup message getting in the way

$
0
0

Ever since installing the 2015 Outlook client, users in my organisation are getting an annoying popup message every now and again. First it comes up with "Contacting CRM" then "Wrapping up". While these are on the screen, you can't click anything else. Also, they pop up right in the middle of the currently active screen and stop you doing whatever you were doing. They pop up multiple times, then vanish. 

Anyone else seeing this? Very annoying. I wonder if it's a "feature" or an issue that needs resolving.

SLA at Pause status

$
0
0

Hi all, I am doing SLA, I created SLA and SLA detail, However, when i create a case this SLA is always at pause status, after i solved the case, it count time. I don't know how it work. plz give some explaination.

My SLA detail:

My case screen

Viewing all 79901 articles
Browse latest View live