Hi.
I'm having troubles getting the integration work between Project Server 2010 and AX 2012. I'm using this code to sync ProjId from AX to Project Server:
syncIntegratedFields.AppId = _appId;
syncIntegratedFields.AppType = SyncAppType::ProjectServer;
syncIntegratedFields.SimpleTypeId = SyncSimpleEntity::ProjectHeader;
syncIntegratedFields.TableName = tablestr(ProjTable);
syncIntegratedFields.FieldName = fieldstr(ProjTable, ProjId);
syncIntegratedFields.FieldType = SyncFieldType::Custom;
syncIntegratedFields.daxExternalName = "DAX_Project_09_ProjId";
syncIntegratedFields.IsSystem_AX = NoYes::No;
syncIntegratedFields.IsSystem_External = NoYes::No;
syncIntegratedFields.IsRequired = NoYes::No;
syncIntegratedFields.CustomFieldType = ProjServerCustomType::Text;
syncIntegratedFields.CustomFieldRollupType = ProjServerCustomRollupType::None;
syncIntegratedFields.insert();
The DAX_Project_09_ProjId field gets created on Project Server but the content is empty. Any ideas?
I would also appriciate if someone provides me an example of how to sync from Project Server to AX. I've been fighting with these for too long now.
Thanks.