var visitdate = Xrm.Page.getAttribute("new_visitdate").getValue().getDay();
Thursday, 7 March 2013
Thursday, 28 February 2013
Disable View of Look Up Record dialog
function SupplierLookup() {
document.getElementById("customerid").setAttribute("lookuptypes", "1");
document.getElementById("customerid").setAttribute("defaulttype", "1");
Xrm.Page.getControl("customerid").setDefaultView("36C01218-C55F-E211-BACF-00155D000B45"); // View Id
document.getElementById("customerid").setAttribute("disableViewPicker", "1");
}
Thursday, 21 February 2013
Access restriction: The type Krb5LoginModule is not accessible due to restriction on required library C:\Program Files\Java\jre7\lib\rt.jar
In eclipse go to: Window > Preferences > Java > Compiler >
Errors/Warnings > Deprecated and restricted API > Forbidden
reference (access rules) > set it to ‘Warnings’
Wednesday, 13 February 2013
Set Opportunity status to Won in crm 2011
WinOpportunityRequest winRequest = new WinOpportunityRequest
{
OpportunityClose = new OpportunityClose
{
OpportunityId = new EntityReference
{
LogicalName = "opportunity",
Id = order.OpportunityId.Id
},
},
Status = new OptionSetValue(3)
};
service.Execute(winRequest);
Friday, 8 February 2013
Create Users in Domino Administrator
The purpose
of this document is to create Lotus Notes user using Domino Administrator in
Domino Server. Once the user is created successfully in Domino Server it can be
configured in Lotus Notes.
Prerequisites:
·
Lotus
Domino Administrator should be installed
and configured
Steps:
1. Open
Lotus Domino Administrator
2. Select
“People” under the Domino server
directory
3.
Right side panel, click “People”. In that click “Register…” as shown below.
4. It
will prompt below dialog, click “Certifier
ID…” and choose the “cert.id” file from “C:\Program
Files\IBM\Lotus\Domino\data” path.
5. Then
click “OK” button in the above dialog.
6. It
will prompt for Lotus Notes certifier password as shown below. In that enter
certifier password and click “OK” button.
7. Finally
after the validation it will open the user creation dialog as shown below. in
that dialog enter the required details as shown below.
8. Click
“Password Options…” and set the
options as shown below and click “OK”
button.
9. Then
to set the email address for the newly created user, Check the “Advanced” option and set the email
address as shown below.
10.
Once all the above steps are completed,
click the green color tick symbole in the above dialog and click the “Register” button to regiter the user in
the domino server.
11.
Once the user registered successfully
in the domino server, it will show the below confirmation dialog.
These are all the steps to be done to
create a user in domino server.
Thursday, 7 February 2013
Run Reports of a particular record in CRM 2011 using javacript
Open particular record and Click run report and select which report you want to run.
Copy the URL on the report window. Use that url on the given code.
function openreport(id) { // Get Current record Id
var errorMessage = "Context is not available.";
var context;
if (typeof GetGlobalContext != "undefined") {
context = GetGlobalContext();
}
else {
if (typeof Xrm != "undefined") {
context = Xrm.Page.context;
}
else {
alert(errorMessage);
return;
}
}
var orgUrl = context.getServerUrl();
var reportUrl = orgUrl + "/crmreports/viewer/viewer.aspx?action=run&context=records&helpID=OrderAcknowledgement.rdl&id=%7b20a4c6e9-8f6f-e211-957a-00155d000b45%7d&records=" + encodeURIComponent(id) + "&recordstype=10006";
window.open(reportUrl);
}
Add the Code on CRM webresources and call this method on your ribbon custom button.
Wednesday, 6 February 2013
Remove pending email warning notification on CRM 2011
If you are using on-premise and use a URL like so:
http://crmserver/{Organization Name}
use the following instead:
http://crmserver/{Organization Name}/main.aspx?skipNotification=1
If you are claims-based (IFD) and use a URL like so:
https://{Organization Name}.crmserver.com
use the following instead:
https://{Organization Name}.crmserver.com/main.aspx?skipNotification=1
For on-line customers using a url like:
https://{Organization Name}.crm5.dynamics.com
use the following instead:
https://{Organization Name}.crm5.dynamics.com/main.aspx?skipNotification=1
Save it to your bookmark and stop growling (if you're like me) every time you open up CRM!
Subscribe to:
Posts (Atom)