Help on snow_find_record module

17 views
Skip to first unread message

Gajendra Gaikwad

unread,
Jul 18, 2020, 2:59:31 PM7/18/20
to Ansible Project
Hello Team,

I am trying to search records with order_by "+created_on"  filter but output is not as excepted  :( 

    snow_record_find:
      username: abc
      password: **
      instance: abc
      table: service_request
      order_by: '+created_on'
      max_records: 5

Dick Visser

unread,
Jul 18, 2020, 3:04:45 PM7/18/20
to ansible...@googlegroups.com
You forgot to mention two things

1. What did you expect
2. What was the output 



--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d106da20-2e5e-489b-9a3a-0691e29d89e1o%40googlegroups.com.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.

Gajendra Gaikwad

unread,
Jul 18, 2020, 3:11:01 PM7/18/20
to Ansible Project
Hello Visser,
Thank you for your reply.

I am looking for latest created ritm/data but output is too old

k: 1/1 [localhost] => {
    "new_incident.record": [
        {
            "sys_created_on": "2019-02-22 13:12:29"
        },
        {
            "sys_created_on": "2019-09-06 14:30:55"
        },
        {
            "sys_created_on": "2019-10-09 14:05:44"
        },
        {
            "sys_created_on": "2019-10-29 15:03:38"
        },
        {
            "sys_created_on": "2019-12-05 07:48:50"
        }
    ]
}



On Sunday, July 19, 2020 at 12:34:45 AM UTC+5:30, Dick Visser wrote:
You forgot to mention two things

1. What did you expect
2. What was the output 


On Sat, 18 Jul 2020 at 20:59, Gajendra Gaikwad <gajendra...@gmail.com> wrote:
Hello Team,

I am trying to search records with order_by "+created_on"  filter but output is not as excepted  :( 

    snow_record_find:
      username: abc
      password: **
      instance: abc
      table: service_request
      order_by: '+created_on'
      max_records: 5

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages