Service Desk Practitioners Forum
cancel

Set Full Name with the Web-api

Highlighted
Maria_Val
New Member.

Set Full Name with the Web-api

Hello,

I am loading an Excel file to Service Desk using the web-api. I don't know how to set the Full Name when I create a new person.
I have tried:

private static IFullName FullN;
private static IPerson PNueva;

FullN = PNueva.getFullName();
FullN.setFirstName(FN);
FullN.setLastName(Apellido1 + " " + Apellido2);

PNueva.save();

But this doesen't work.

Any ideas??

Thanks
1 REPLY
Maria_Val
New Member.

Re: Set Full Name with the Web-api

The previous code is only a part of the total code.

private static IFullName FullN;
private static IPersonHome PH;
private static IPerson PNueva;
------------------------------
PNueva = PH.openNewPerson();
FullN = PNueva.getFullName();
FullN.setFirstName(FN);
FullN.setLastName(Apellido1 + " " + Apellido2);

PNueva.save();
------------------------------