سلام وقت بخیر
در رابطه با ایجاد فرصت هم روی دمو curl میکنم:
C:\Users\User>curl -X POST "http://pgtestagent.demo.payamgostar.com/services/api/iopportunity.svc" -H "Content-Type: text/xml; charset=utf-8" -H "SOAPAction: \"http://tempuri.org/IOpportunity/SaveOpportunity\"" -d "<?xml version=\"1.0\" encoding=\"utf-8\"?><soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:tem=\"http://tempuri.org/\" xmlns:sep=\"http://schemas.datacontract.org/2004/07/Septa.PayamGostar.ServiceLayer.Contract.PGContracts.DataContracts\"><soapenv:Header/><soapenv:Body><tem:SaveOpportunity><tem:username>admin</tem:username><tem:password>admin</tem:password><tem:opportunityInfo><sep:CrmObjectTypeCode>Attractagency</sep:CrmObjectTypeCode><sep:CrmObjectTypeId>b910b449-6992-467b-b2b9-dbaf6b7b285f</sep:CrmObjectTypeId><sep:IdentityId>80a366e9-4a93-41ef-8cc6-ebdc81a414d0</sep:IdentityId><sep:Subject>فرصت فروش تست دمو</sep:Subject><sep:Stage>مذاکره اولیه</sep:Stage><sep:OpportunityType>1</sep:OpportunityType><sep:OpportunitySourceType>اینستاگرام</sep:OpportunitySourceType><sep:CreatDate>2025-11-09T12:00:00</sep:CreatDate><sep:ModifyDate>2025-11-09T12:00:00</sep:ModifyDate></tem:opportunityInfo></tem:SaveOpportunity></soapenv:Body></soapenv:Envelope>"
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><SaveOpportunityResponse xmlns="http://tempuri.org/"><SaveOpportunityResult xmlns:a="http://schemas.datacontract.org/2004/07/Septa.PayamGostar.ServiceLayer.Contract.PGContracts.DataContracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><a:Message>
An exception was caught during the execution of an action query: Cannot insert the value NULL into column 'OppTypeIndex', table 'pgtestagent_demo_payamgostar_com.dbo.Opportunity'; column does not allow nulls. INSERT fails.
The statement has been terminated.. Check InnerException, QueryExecuted and Parameters of this exception to examine the cause of this exception.</a:Message><a:Success>false</a:Success><a:CrmId>00000000-0000-0000-0000-000000000000</a:CrmId></SaveOpportunityResult></SaveOpportunityResponse></s:Body></s:Envelope>
C:\Users\User>
به عنواع روش ها امتحان کردم و Opportunitytype رو با عدد کلید نوع فرصت مثلا 1 تست کردم نشد با نام نوع فرصت مثلا استاندارد تست کردم نشد با کلید موجودیت فرصت مثلا Attractagency تست کردم نشد با id فرصت مثلا b910b449-6992-467b-b2b9-dbaf6b7b285f تست کردم بازم نشد و خطا میده: An exception was caught during the execution of an action query: Cannot insert the value NULL into column 'OppTypeIndex', table 'pgtestagent_demo_payamgostar_com.dbo.Opportunity'; column does not allow nulls. INSERT fails. The statement has been terminated.. Check InnerException, QueryExecuted and Parameters of this exception to examine the cause of this exception.
راه دیگه ای به ذهنم نمیرسه لطفا راهنمایی کنید ممنون