Question Status

Ola Qamhieh asked a question on 7 Mar 2013 1:15 AM

Dear All, 

i am trying to do a small customization on business portal 

i have found this white paper helpful in this matter ,

Using Web Services in Business Portal

when ever i try the code attached , to create the functionality descried in the white paper 

it is given me the following error message 

The Microsoft Business Framework must be started using EnterpriseSession.Initialize().

which is related to these lines

using Microsoft.BusinessFramework
using Microsoft.BusinessFramework.Entity;

//Method to use company database ID from BP session

public int GetDBID()
int dbID;
EntityKey eK;

eK = (Microsoft.Dynamics.Common.Company.Company.Key)EnterpriseSession.DefaultParentKey;

Microsoft.Dynamics.Common.Company.Company company = (Microsoft.Dynamics.Common.Company.Company)eK.GetEntity();

dbID = company.ID;

return dbID;

am i doing some thing wrong , or what

any help will be very thankful

Ken Johnson responded on 20 Mar 2013 2:56 PM

we are looking for a BP customization resource.  specifically Time & Expense entry windows.  any contact information would be greatly appreciated.

Ken Johnson