public void UpdateContactRegistration(string reg_id, string contact_id, string logId) { var suiteWrapper = new SuiteWrapper(); suitesessionId = suiteWrapper.Login().GetAwaiter().GetResult(); SetRelationShipRequest relationshipRequest = new SetRelationShipRequest(); relationshipRequest.session = suitesessionId; relationshipRequest.module_name = "reg_Registration"; relationshipRequest.module_id = reg_id; relationshipRequest.link_field_name = "contacts_reg_registration_1contacts_ida"; relationshipRequest.related_ids = new List <string>() { contact_id }; var relationshipResponse = suiteWrapper.SetRelationship(relationshipRequest).GetAwaiter().GetResult(); if (relationshipResponse == null) { common.InsertSuiteAmIntegrationLogDetail(new CreateTraceLogRequest() { Description = "Failed to update Client id in Suite Registration Id: " + reg_id, Name = "InsertSuiteRegistration", Entity_c = "Registration" }, logId); SuiteWrapper.WriteTraceLog("InsertSuiteRegistration", "Failed to update Client id in Suite Registration Id: " + reg_id); } }