Gemphonefarm-book
  • Welcome
  • Set up & Kết nối Phone
  • Setup Giả Lập
  • Hướng dẫn sử dụng
    • Control Center
    • Stream Device
    • Inspector
    • Automation
      • General
        • Start
        • End
        • Resource Status
        • Delay
        • HTTP Request
        • Block Group
        • Note
      • UI Interaction
        • Press Back
        • Press Home
        • Press Menu
        • Touch
        • Swipe/Scroll
        • Screenshot
        • Type Text
        • Image Search
        • Swipe & Check Screen
        • Clear Text
        • Find Text
      • Device Management
        • Set Clipboard
        • Get Clipboard
        • Reconnect
        • Transfer File
        • Screen Action
        • Toggle Service
        • Change Device
        • Get Property Device
        • Check Network
        • Dump XML
        • Proxy
      • App Management
        • Is Open App
        • Start App
        • Stop App
        • Install App
        • Uninstall App
        • Is Installed App
        • Backup/Restore
        • Backup/Restore Device
        • Clear Data App
        • Close All App
      • System Commands
        • JavaScript code
        • Element exists
        • Press Key
        • ADB Command
      • Data
        • Read file text
        • Insert data
        • Delete data
        • Get log data
        • Slice variable
        • Increase variable
        • RegEx variable
        • Data mapping
        • Split Data
        • Sort data
        • Get Attribute
        • Random
        • IMAP (Read Mail)
        • Read Hotmail
        • Refresh Hotmail AccessToken
        • File Action
        • Generate 2FA
      • Online Services
        • Excel
        • Google Sheets
        • Gemini AI
        • Chat GPT
        • DeepSeek
        • BlackBox AI
      • Control Flow
        • Repeat Task
        • Conditions
        • While Loop
        • Loop Data
        • Loop Breakpoint
  • Setting
    • General
    • Automation
    • Phone
    • Editor
Powered by GitBook
On this page
  1. Hướng dẫn sử dụng
  2. Automation
  3. Data

Data mapping

Bản đồ dữ liệu của một biến hoặc bảng.

Nguồn dữ liệu Nguồn dữ liệu để ánh xạ có thể là một biến hoặc bảng.

  • Bản đồ dữ liệu Bản đồ dữ liệu là nơi bạn khớp các trường nguồn với các trường đích bằng cách nhập ký hiệu dấu chấm. Nguồn có thể có nhiều đích. Ví dụ, khi bạn có dữ liệu như bên dưới

[
	{
		"address": "2204 Volutpat Rd.",
		"name": "Palmer Porter",
		"phone": "(251) 595-5203",
		"email": "phasellus.dolor@aol.org",
		"postalZip": "8517",
		"country": "United States"
	},
	{
		"address": "2741 Dis Rd.",
		"name": "Byron Bowers",
		"phone": "(563) 717-9312",
		"email": "mattis.ornare@outlook.couk",
		"postalZip": "5612",
		"country": "Costa Rica"
	},
	{
		"address": "Ap #923-7718 Sed Rd.",
		"name": "Joseph Waller",
		"phone": "1-897-102-6811",
		"email": "cras.pellentesque@outlook.edu",
		"postalZip": "38-251",
		"country": "Belgium"
	}
]

và có bản đồ dữ liệu như sau.

Dữ liệu sẽ được chuyển thành

[
	{
		"email": "phasellus.dolor@aol.org"
		"full_name": "Palmer Porter",
		"address": {
			"street": "2204 Volutpat Rd.",
			"postalZip": "8517",
			"country": "United States"
		},
	},
	{
		"email": "mattis.ornare@outlook.couk",
		"full_name": "Byron Bowers",
		"address": {
			"street": "2741 Dis Rd.",
			"postalZip": "5612",
			"country": "Costa Rica"
		},
	},
	{
		"email": "cras.pellentesque@outlook.edu",
		"full_name": "Joseph Waller",
		"address": {
			"street": "Ap #923-7718 Sed Rd."
			"postalZip": "38-251",
			"country": "Belgium"
		}
	}
]
  • Gán cho biến Có thể gán dữ liệu được ánh xạ vào một biến hoặc không.

    • Tên biến Chọn tên của biến được dùng để gán dữ liệu sau khi ánh xạ

  • Chèn vào bảng Có thể gán dữ liệu được ánh xạ vào một bảng hoặc không

    • Chọn cột Cột nơi dữ liệu được ánh xạ sẽ được chèn vào.

PreviousRegEx variableNextSplit Data

Last updated 5 months ago