/// <summary> /// To get ZCRMModuleRelation instance by passing ZCRMRecord class instance and ZCRMJunctionRecord class instance. /// </summary> /// <returns>The instance.</returns> /// <param name="parentRecord">ZCRMRecord class instance</param> /// <param name="junctionRecord">ZCRMJunctionRecord class instance</param> public static ZCRMModuleRelation GetInstance(ZCRMRecord parentRecord, ZCRMJunctionRecord junctionRecord) { return(new ZCRMModuleRelation(parentRecord, junctionRecord)); }
/// <summary> /// To get ZohoCRM record instance by passing module API name and entity(record) Id. /// </summary> /// <returns>ZCRMRecord class instance.</returns> /// <param name="moduleAPIName">modules' API name (String)</param> /// <param name="entityId">entity(record) Id (Long)</param> public ZCRMRecord GetRecordInstance(string moduleAPIName, long entityId) { return(ZCRMRecord.GetInstance(moduleAPIName, entityId)); }
private ZCRMModuleRelation(ZCRMRecord parentRecord, ZCRMJunctionRecord junctionRecord) { ParentRecord = parentRecord; JunctionRecord = junctionRecord; }
/// <summary> /// To get ZCRMModuleRelation instance by passing ZCRMRecord class instance and related List APIName. /// </summary> /// <returns>ZCRMModuleRelation class instance.</returns> /// <param name="parentRecord">ZCRMRecord class instance</param> /// <param name="relatedListAPIName">APIName (String) of the related list.</param> public static ZCRMModuleRelation GetInstance(ZCRMRecord parentRecord, string relatedListAPIName) { return(new ZCRMModuleRelation(parentRecord, relatedListAPIName)); }
private ZCRMModuleRelation(ZCRMRecord parentRecord, string relatedListAPIName) { ParentRecord = parentRecord; ApiName = relatedListAPIName; }
public static RelatedListAPIHandler GetInstance(ZCRMRecord parentRecord, ZCRMJunctionRecord junctionRecord) { return(new RelatedListAPIHandler(parentRecord, junctionRecord)); }
private RelatedListAPIHandler(ZCRMRecord parentRecord, ZCRMJunctionRecord junctionRecord) { this.parentRecord = parentRecord; this.junctionRecord = junctionRecord; }
public static RelatedListAPIHandler GetInstance(ZCRMRecord parentRecord, ZCRMModuleRelation relatedList) { return(new RelatedListAPIHandler(parentRecord, relatedList)); }
private RelatedListAPIHandler(ZCRMRecord parentRecord, ZCRMModuleRelation relatedList) { this.parentRecord = parentRecord; this.relatedList = relatedList; }