我有尝试运行的动作。这是行动定义:
<ComplexType Name="vip_MemberProgramResponse">
<Property Name="MembershipId" Type="Edm.String" Nullable="false" Unicode="false" />
<Property Name="ResponseCode" Type="Edm.String" Nullable="false" Unicode="false" />
<Property Name="ResponseMessage" Type="Edm.String" Nullable="false" Unicode="false" />
</ComplexType>
<Action Name="vip_MemberProgram">
<Parameter Name="memberProgramInput" Type="Edm.String" Nullable="false" Unicode="false" />
<ReturnType Type="mscrm.vip_MemberProgramResponse" Nullable="false" />
</Action>
这是我的行动电话:
await client.ExecuteActionAsScalarAsync<string>
("vip_MemberProgram", new Dictionary<string, object>
{
{ "memberProgramInput" , "this is parameter value"}
});
当我执行它时,我得到例外:
找到名为'MembershipId'的属性的空值,该属性具有预期类型'Edm.String [Nullable = False]'。期望的类型'Edm.String [Nullable = False]'不允许空值。
我做错了什么?