Исправить имена колонок причины открытия вакансии в отчёте по вакансиям
В списке «Заявка на подбор — данные» колонки называются VacancyOpenReason и VacancyOpenReasonDetails; запрос с несуществующими OpenReason* падал, ошибка партиции глушилась в лог, и отчёт возвращался пустым. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -26,7 +26,7 @@ internal sealed record SelectionRow(
|
||||
/// </summary>
|
||||
public const string Select =
|
||||
"$select=Id,RequestStatus,Position,DepartmentName,ObjectProject,OpenVacanciesCount," +
|
||||
"SubmitDate,Created,OpenReason,OpenReasonDetails,Responsible/Title&$expand=Responsible&$top=5000";
|
||||
"SubmitDate,Created,VacancyOpenReason,VacancyOpenReasonDetails,Responsible/Title&$expand=Responsible&$top=5000";
|
||||
|
||||
public static SelectionRow? TryParse(JsonElement item, string listId)
|
||||
{
|
||||
@@ -50,7 +50,7 @@ internal sealed record SelectionRow(
|
||||
// иначе заявка попадала бы в отчёт, но с пустой колонкой H.
|
||||
SharePointJson.Date(item, "SubmitDate") ?? SharePointJson.Date(item, "Created"),
|
||||
SharePointJson.PersonTitle(item, "Responsible"),
|
||||
SharePointJson.String(item, "OpenReason"),
|
||||
SharePointJson.String(item, "OpenReasonDetails"));
|
||||
SharePointJson.String(item, "VacancyOpenReason"),
|
||||
SharePointJson.String(item, "VacancyOpenReasonDetails"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user