Hi,
Found this wonderful article on how to set the permissions within Microsoft Dynamics CRM
http://www.orbitone.com/en/blog/archive/2009/10/06/minimum-dynamics-crm-permissions.aspx
Bye..
Hi,
Found this wonderful article on how to set the permissions within Microsoft Dynamics CRM
http://www.orbitone.com/en/blog/archive/2009/10/06/minimum-dynamics-crm-permissions.aspx
Bye..
First download the wsdl file for the lead record from Oracle CRM On Demand web application.
Add web references to it within a .NET windows application.
Use the following code for inserting the lead record.
We need to specify value for all the required field for the record to get inserted.
//Create the New lead record instandce And Set its url With proper session id
Lead myLead = New Lead();
myLead.Url = "https://secure-ausomxapa.crmondemand.com/Services/Integration;jsessionid=" + sessionID;
// create arrary Of lead record To be inserted
LeadData[] myLeadData = New LeadData[1];
myLeadData[0] = New LeadData();
myLeadData[0].LeadFirstName = "Nishant";
myLeadData[0].LeadLastName = "Rana";
myLeadData[0].Source = "Email";
myLeadData[0].dLead_Generation_Date = Convert.ToDateTime("7/30/2010");
myLeadData[0].LeadOwner = "Nishant Rana";
myLeadData[0].dLead_Generation_dateSpecified = True;
// add lead data array To listofLeadData Class
ListOfLeadData myLstLeadData = New ListOfLeadData();
myLstLeadData.Lead = myLeadData;
// create an instance Of leadinsert_input Class
LeadInsert_Input myLeadRecordInput = New LeadInsert_Input();
myLeadRecordInput.ListOfLead = myLstLeadData;
LeadInsert_Output myLeadRecordOutput = myLead.LeadInsert(myLeadRecordInput);
}
The sample code for the ManageSession.cs class
public static String Logoff(String logoffUrlString, string SessionID)
{
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(logoffUrlString);
// set the session id in header
req.Headers["JSESSIONID"] = SessionID;
// make the HTTP call
HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
return resp.StatusCode.ToString();
}
}
Hope it helps !
Bye..
Recently, I was assigned a task to customize the NewForm.aspx and EditForm.aspx for a particular list. The list was part of a site definition generated using SharePoint Solution Generator.
The reason we wanted to customize the page was because we wanted one custom field to be added (drop down list) that would display all the content types in that site.
You can find the sample project and related files over here
Link:- https://nishantrana.me/wp-content/uploads/2010/06/sharepointproject.doc
Please rename the file from SharePointProject.doc to SharePointProject.zip after downloading it.
Bye..
Suppose we have created a site definition for an existing Site having two lists and one of the lists uses a lookup column that points to the other list.
Now if we are creating site using that site definition we will find our lookup column missing in the list.
If we check the schema.xml for our list, we will find our lookup field to be commented.
To get it working , we need to define the field in the following manner
Original
<Field Type="Lookup" DisplayName="myLookUp" Required="FALSE" List="{72424dd2-9030-408a-97c9-8482d9d81204}" ShowField="Title" UnlimitedLengthInDocumentLibrary="FALSE" ID="{f50277a0-4da5-46d3-8e60-284c729a3eb8}" SourceID="{07e7832d-45df-4f69-b5bb-e31c5107c5ca}" StaticName="myLookUp" Name="myLookUp" ColName="int1" RowOrdinal="0" />
It should be modified to
<Field Type="Lookup"
DisplayName="myLookUp"
Required="FALSE"
List="Lists/SecondList"
ShowField="Title"
ID="{f50277a0-4da5-46d3-8e60-284c729a3eb8}"
StaticName="myLookUp" Name="myLookUp" ></Field>
SecondList :- The name of the other list.
Check this wonderful post
Bye…
I got this error while updating an splistitem. It was coming while trying to update “Person or Group” type column.
This is the correct way to update the column of type “Person or Group”.
itemApprovalAssignment["Title"] = txtTitle.Text.Trim();
itemApprovalAssignment["Assign_x0020_To"] = oweb.EnsureUser(peAssignTo.CommaSeparatedAccounts);
i.e. to use EnsureUser method.
Bye..
I was getting the above error while deploying the Site Definition in SharePoint. The unique thing about this error was that after some time it used to get resolved itself.
Then while searching for it i found the following solution for it which is to Stop the Indexing Service.
And it really worked.
Bye..