Recurrence Information is wrong when changed in editor - outlook

When editing an Appointment in Outlook for the Web, the Add-In will always get the same recurrence information for an item while it is open. When queried the first time the information seems to be accurate. The second time it is still the same even if the actual recurrence of the appointment was changed.
We're in the appointment compose case and use the getAsync() function to get the recurrence.

Related

Outlook add in (calendar event): Series ID when creating an event with recurrence

I have an Outlook add-in available for Calendar new events, with a task pane
When my task pane is open, in my JS code I can get the item ID:
Office.context.mailbox.item.itemId
And if the event is part of a series, I can get the series ID:
Office.context.mailbox.item.seriesId
My problem is I would like to know the seriesId when i am creating an event with recurrence, but it seems to be null at this moment. Only when the series is saved, and I open an item to edit (a single item from the series), I can get the series ID.
I have seen that when I open (to edit) a single item from the series, both item ID and series ID have (different) value.
But if I open the whole series (to edit) I have no series ID, since the item ID is the series ID...
So I need series ID when creating the event, to save both IDs. Then, when I open an event (to edit), I can check if it is an event of my series or my series itself...
Any help?
I am using Outlook 365 Web
Thanks in advance,
Diego
Ways to get series Id in compose mode are
Using seriesId API, if you are editing an event in the series.
Using saveAsync API, to save the draft series, the callback returns back the item identifier, which is the seriesId.
Thanks for the response. I see that the itemId I get with saveAsync when creating an event with recurrence becomes the series ID.
Then, when I am editing:
A single event of a series, each event has a particular itemID, and all of the items of the series have the same seriesID (the initial itemID when creating the series)
The series, the seriesID is null in that case, since the itemID is the original itemID (which is the seriesID).
An event "and the following events" of a series, seriesID is null and the itemID is the particular one.
How can I know in the 3rd case I am editing the series I created (a part of it)? I don't know how to associate this edition with the initial seriesID I saved. I could think it is a single event edition...
Thanks,
Diego

Unclear Document regarding AEM form validation

Hi everyone wonder if anyone can provide pictures or the exact steps pertaining to how to locate the "validation expression according to this link https://helpx.adobe.com/experience-manager/6-3/forms/using/adaptive-form-expressions.html#main-pars_header_3
Also while you are here I am wondering if it is possible to use these validation tools to check if the income is greater than the cost. i.e the user have to key in a higher value in the income numeric box as compared to the cost numeric box. If not providing a guide that allows me to do this would be great.
Many thanks in advance!
The validate expression is written using the Code editor of the rule editor. For e.g., I've created an adaptive form with 2 Numeric Boxes (Income and Cost) as shown below.
So, to validate if the value entered in the income is always greater than the cost, then click on the Income field and then click the Edit Rules icon. This will open the rule editor
Once in the rule editor window, click on the Income field on the left rail and then click the Create button.
In the Create Rule window, you can use the Validate event and configure the required condition.
You may also need to write a similar condition on the cost field as well, but in reverse (Cost is less than Income) so that when someone changes the value in the Cost field, it is validated too.
As far as your original question goes, if you switch to the Code Editor, it should give you another editor where you can write Javascript to validate the value. The validation expression from your documentation link goes there (see below).

UIPath - Find OCR text position and selecting a day from the calendar

I was trying to grab a website calendar from UiPath. But when I use the Find OCR Text Position or Click OCR text activity in the UiPath Software, it will not give me the exact date that I want to select.
I want to do one thing only: I need to determine today's date, select the date, and press OK.
I figured out how to calculate today's date:
But now I only have to do, is selecting numbers, Please help me to figure this out. Thanks in advance.
Since we don't know much about the front-end framework you're planning to use, here's a generic approach using a relative selector. Note that I hard-coded the day (15), and I didn't check whether the correct month or year is displayed, but this should at least get you started.
My approach uses a simple click activity with the variable day being part of the selector. There's another click activity associated with opening the picker in the first place, but as said - this is just related to the front-end framework.
It looks like DateTime_Today is a DateTime type variable in your screenshot, which has a very useful ToString method see documentation on it here: https://learn.microsoft.com/en-us/dotnet/api/system.datetime.tostring?view=netframework-4.7.2 which will allow you to extract the number that you are looking for.
You would need to create a string variable and assign the value to DateTime_Today.ToString("dd") to get only the day of the month.
The issue with this approach, however, is then creating the image for the OCR to look for in the calendar. I think a more reliable way of approaching this issue would be to determine what date is selected by default when clicked and then sending some combination of hotkeys such as tab and the directional keys to get to the date which is required for the automation. A get text or get attribute activity might also help determine what date is currently selected, so you would then know how many boxes will need to be traversed to get the required selection.
If you are still having issues please provide a link to the page which you are trying to automate as well as some (sanitized) code snippets containing what you have already tried and we will be able to assist you further. Cheers!

Dynamics CRM Online 2016 - roll up field not calculating accurately in a custom entity

Dynamics CRM 2016 Online.
It seems that the rollup field is not calculating accurately (please see picture).
I have 2 custom entities - Menu, Recipe which has 1:N relationship
Am I missing something here?
Rollup (field) VS actual(on a subgrid)
Rollup field setup
Rollup fields are calculated by a scheduled system job that runs periodically in the background. So, the rollup value that you see on the menu record (91.80) can be different from the calculation you have in the rollup field's definition if any of the recipe values have changed since the last time the rolled up value on the menu record last was calculated.
On the menu record, hover over the 91.80. You will see a tooltip that tells you when the current value was last calculated, and you will also see a little refresh icon appear that allows you to force the calculation to refresh. When you click the refresh icon, does the value correctly update?

how to prevent multiple inserts when submitting an ajax form

On this problem some more people have stumbled and for non-ajax scenario there is already a solution :
How to prevent multiple inserts when submitting a form in PHP?
(answered Jan 25 '10 at 17:02)
I'd like to know how could be implemented efficiently on both the server and client side a similar solution for the following problem :
there is a wall listing containing multiple items on which the users can click an ajax-enabled "i like" button (no page reload)
the user can have multiple browser windows opened on which can click "i like" buttons
Expected :
Only the first click on the "I like" button for any of the wall items is taken at the server side into account and the following requests for the wall item are not handled anymore.
Keep track of the liked items of each user on the serverside (for example an extra database table). When a new like is going to be inserted, check if there is already an existing record in this table. If there is, the user has already liked this item and you dont't have to count it anymore.
I think the best way is to use a session variable that store the current state, ie when someone clicks you "i like", on the server side, you check the state of the SESSION var.

Resources