Skip to content

[BUG] Not able to set header status value #755

@thathi

Description

@thathi

Bug Report

Issues should only be created for items related to covered functionality.

Not covered functionality, feature requests, and questions should use the Feature Request or Question templates.

EasyRepro Version

  • Microsoft Dynamics 365 Online Version 8.2 (8.2.x) (DB 8.2.x) online
  • Microsoft Dynamics 365 Online Version 9.0 (9.0.x) (DB 9.0.x) online
  • Microsoft Dynamics 365 Online Version 9.0.2 (9.0.2) (DB 9.0.2) online
  • Microsoft Dynamics 365 Online Version 9.1 (9.1.x) (DB 9.1.x) online

UCI or Classic Web

  • UCI (XrmApp)
  • Classic Web (XrmBrowser)

Online or On Premise

  • Online
  • On Premise

Browser

  • Chrome
  • Firefox
  • IE
  • Edge

Describe the bug
Not able to change the status of the Lead

Special formatting / display

Code to reproduce

            xrmApp.OnlineLogin.Login(_xrmUri, _username, _password);
            xrmApp.Navigation.OpenApp(UCIAppName.Sales);
            xrmApp.Navigation.OpenSubArea("Sales", "Leads");
            xrmApp.CommandBar.ClickCommand("New");
            xrmApp.ThinkTime(5000);
            xrmApp.Entity.SetValue("subject", TestSettings.GetRandomString(5, 15));
            xrmApp.Entity.SetValue("firstname", TestSettings.GetRandomString(5, 10));
            xrmApp.Entity.SetValue("lastname", TestSettings.GetRandomString(5, 10));
            xrmApp.Entity.Save();
            xrmApp.Entity.SetHeaderValue(new** OptionSet { Name = "statuscode", Value = "Contacted" });
            xrmApp.Entity.Save();

Expected behavior
Status should be able to changed to "Contacted"

Screenshots
image

Additional context
Updated the following code and it is working as expected.
Old Code:
{ "Entity_Header_OptionSetFieldContainer", "//div[@data-id='header_[NAME].fieldControl-option-set-container']" },
Update Code:
{ "Entity_Header_OptionSetFieldContainer", "//*[contains(@id, '[NAME]-FieldSectionItemContainer')]" },

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions