Highlighted
Absent Member.
Absent Member.
1107 views

Appointment ID changes after creation?

Hi there!
I'm having a problem when reading an appointment from the groupwise server (GW 2014). We are trying to connect a java client, and save some info about these appointments in a database. When I create an appointment using sendItemRequest I get back an ID, which is stored in the database

i.e. 5665C21F.MyDomain.MyPO.100.1776267.1.44.1@4:7.MyDomain.MyPO.100.0.1.0.1@16.

But when I ask the server for a group of appointments from the server using getItemsRequest, I get back a different ID

i.e 5665C21F.MyDomain.MyPO.100.1776267.1.44.1@4:7.MyDomain.MyPO.100.0.1.0.1@19.

Since we are using the ID to access the appointment, subsequent calls fail to find this through the original ID that was stored on creation. Is this normal? Should I discard the container information and access the appointment by its ID?

Any help would be really useful, many thanks!!
Labels (1)
0 Likes
5 Replies
Highlighted
Absent Member.
Absent Member.

Re: Appointment ID changes after creation?

You use the information up to the first '@'.
That is the id for the item.
It uniquely identifies the item.
The information after the '@' is used in accessing the item.

Most of the time, you will need the full id to get the item.
But, you use up to the first '@' to identify the item.

Preston

>>>


> Hi there!
> I'm having a problem when reading an appointment from the groupwise
> server (GW 2014). We are trying to connect a java client, and save some
> info about these appointments in a database. When I create an
> appointment using sendItemRequest I get back an ID, which is stored in
> the database
>
> i.e.
> 5665C21F.MyDomain.MyPO.100.1776267.1.44.1@4:7.MyDomain.MyPO.100.0.1.0.1@
> 16.
>
>
> But when I ask the server for a group of appointments from the server
> using getItemsRequest, I get back a different ID
>
> i.e
> 5665C21F.MyDomain.MyPO.100.1776267.1.44.1@4:7.MyDomain.MyPO.100.0.1.0.1@
> 19.
>
> Since we are using the ID to access the appointment, subsequent calls
> fail to find this through the original ID that was stored on creation.
> Is this normal? Should I discard the container information and access
> the appointment by its ID?
>
> Any help would be really useful, many thanks!!

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Appointment ID changes after creation?

But if I don't save the rest of the ID I can't access the item... why it returns a different full ID on subsequent calls after creation? My problem is that if I want to check if the item we query from the Groupwise server is already in our database I get 'false' because of this difference. I can't really change this part of the code because it's some legacy code working with other implementations, so I'm trying to understand what is happening here to find a workaround.
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Appointment ID changes after creation?

I'm not sure I understand what you are saying.
You save the entire string.
When you compare id's, you grab the id up to the first '@'.
You use that part to compare id's.
(Every language has utility functions to get a substring
of a string.)
The information after the '@' is used internally to help
in accessing the item.
If I didn't have that information, I would have to do various
extra reads (which is not desirable).
We don't document the format of the string.
(We reserve the right to change the format.)

Preston

>>>


> But if I don't save the rest of the ID I can't access the item... why it
> returns a different full ID on subsequent calls after creation? My
> problem is that if I want to check if the item we query from the
> Groupwise server is already in our database I get 'false' because of
> this difference. I can't really change this part of the code because
> it's some legacy code working with other implementations, so I'm trying
> to understand what is happening here to find a workaround.

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Appointment ID changes after creation?

Hi Preston, many thanks for your help!! The problem is that this comparison is made in some code that I cannot change because it would break other modules in our program. If I may ask you another question, is there some other way to build the full ID to access an item or extract this information somehow from the unique ID of the item?
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Appointment ID changes after creation?

Sorry, I don't understand your program or you limitations.
If you are just dealing with appointment id's, you might be
able to use the iCalId field.

>>>


> Hi Preston, many thanks for your help!! The problem is that this
> comparison is made in some code that I cannot change because it would
> break other modules in our program. If I may ask you another question,
> is there some other way to build the full ID to access an item or
> extract this information somehow from the unique ID of the item?

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.