导入ABSL;
导入AP.FO.BusinessPartner.Global;
var q = BusinessPartner.QueryByIdentification;
var p = q.CreateSelectionParams();
p.Add(q.InternalID," I"," EQ"," 1042044"); //要识别帐户名的联系人ID
var r = q.Execute(p);
如果(r.GetFirst()。IsSet())
{
var n = r.GetFirst();
如果(n.BusinessPartnerRelationship.GetFirst()。IsSet())
{
var t = n.BusinessPartnerRelationship.GetFirst();
如果(t.IsSet())
{
var b = t.FirstBusinessPartner;
如果(b.IsSet())
{
var name = b.CurrentCommon.Organisation.Name.FirstLineName;
var sort = b.CurrentCommon.SortingFormattedName;
}
}
}
}
您好Swati,
您可以参考以下代码:
谢谢
Saurabh
一周热门 更多>