You need to sign in to do that
Don't have an account?
Dataloading through .net application.
/* Loop will compare PG suid matched with salesfoce suid*/
#region Loop will compare PG suid matched with salesfoce suid
for (i = 0; i < qr.size; i++)
{
contact = (Contact)records[i];
if (Convert.ToString(contact.SUID__c) != null)
{
if (contact.SUID__c.ToString() == str.ToString())
{
k = i;
j = 1;
strcurrentval = str.ToString();
string strcontactsuid = contact.SUID__c.ToString();
break;
}
}
else if(Convert.ToString(contact.Email) != null || Convert.ToString(contact.Email_2__c) != null )
{
if ((Convert.ToString(contact.Email) == prefemail.ToString() || Convert.ToString(contact.Email) == otheremail.ToString()) || (Convert.ToString(contact.Email_2__c) == otheremail.ToString() || Convert.ToString(contact.Email_2__c) == prefemail.ToString()))
{
k = i;
j = 1;
break;
}
}
}
#endregion
/*IF the suid of PG data matched with Salesforce data then it will update */
//dsContact.Tables[0].Columns.Add("Record Status");
if (Convert.ToString(qr.size) != "0" && j == 1)
{
here goes the update and create records to salesforce.
}
hi simon,
Thanks for the reply.
i actually had SUID as the key based on which i am uploading
http://www.salesforce.com/us/developer/docs/api/index.htm